summaryrefslogtreecommitdiff
path: root/indra/newview/viewer_manifest.py
diff options
context:
space:
mode:
authorbrad kittenbrink <brad@lindenlab.com>2009-09-30 18:57:00 -0700
committerbrad kittenbrink <brad@lindenlab.com>2009-09-30 18:57:00 -0700
commit292aecbb3e14658c470978efeb7cd790ec156fd2 (patch)
treec81975b7ccacccddf6cd4ccb07bdfdf278a8b042 /indra/newview/viewer_manifest.py
parent0c0b59e10473159de0dc2a5ed899e01ee46b4d7a (diff)
Updated test_win32_manifest.py to throw custom exception objects, rather than relying on string comparison.
Diffstat (limited to 'indra/newview/viewer_manifest.py')
-rwxr-xr-xindra/newview/viewer_manifest.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index 579bfaa4d9..bda81a505d 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -187,6 +187,7 @@ class WindowsManifest(ViewerManifest):
# This is used to test that no manifest for the msvcrt exists.
# It is used as a temporary override during the construct method
from test_win32_manifest import test_assembly_binding
+ from test_win32_manifest import NoManifestException, NoMatchingAssemblyException
if src and (os.path.exists(src) or os.path.islink(src)):
# ensure that destination path exists
self.cmakedirs(os.path.dirname(dst))
@@ -198,9 +199,10 @@ class WindowsManifest(ViewerManifest):
else:
test_assembly_binding(src, "Microsoft.VC80.CRT", "")
raise Exception("Unknown condition")
- except Exception, err:
- if err.message != "No matching assembly" or err.message != "No manifest found":
- raise Exception("Found unexpected MSVCRT manifest binding")
+ except NoManifestException, err:
+ pass
+ except NoMatchingAssemblyException, err:
+ pass
self.ccopy(src,dst)
else: