From 38d9454cbf30f470a723d912be2080f63ae3fa47 Mon Sep 17 00:00:00 2001 From: Oz Linden Date: Thu, 21 Sep 2017 19:24:04 -0400 Subject: remove redundant exception constructor code, and generalize exception catching for platform specific code --- indra/lib/python/indra/util/llmanifest.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'indra/lib') 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 -- cgit v1.2.3