summaryrefslogtreecommitdiff
path: root/indra/lib
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2017-09-21 19:24:04 -0400
committerOz Linden <oz@lindenlab.com>2017-09-21 19:24:04 -0400
commit38d9454cbf30f470a723d912be2080f63ae3fa47 (patch)
tree02716f21eb5714f2ea35c6a54bb4c027e107db8d /indra/lib
parent6ac682619275580eb42f2aaa93b6a251df6239b8 (diff)
remove redundant exception constructor code, and
generalize exception catching for platform specific code
Diffstat (limited to 'indra/lib')
-rwxr-xr-xindra/lib/python/indra/util/llmanifest.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/lib/python/indra/util/llmanifest.py b/indra/lib/python/indra/util/llmanifest.py
index e035b8fd7f..d4e61aedd1 100755
--- a/indra/lib/python/indra/util/llmanifest.py
+++ b/indra/lib/python/indra/util/llmanifest.py
@@ -49,9 +49,7 @@ class ManifestError(RuntimeError):
class MissingError(ManifestError):
"""You specified a file that doesn't exist"""
- def __init__(self, msg):
- self.msg = msg
- super(MissingError, self).__init__(self.msg)
+ pass
def path_ancestors(path):
drive, path = os.path.splitdrive(os.path.normpath(path))
@@ -316,7 +314,7 @@ def main():
try:
wm = LLManifest.for_platform(args['platform'], args.get('arch'))(args)
wm.do(*args['actions'])
- except ManifestError as err:
+ except Exception as err:
sys.exit(str(err))
if touch:
print 'Created additional package ', wm.package_file, ' for ', package_id