diff options
-rw-r--r-- | catalog/packages/ns_package.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/catalog/packages/ns_package.py b/catalog/packages/ns_package.py index 21e88e90..7a37291a 100644 --- a/catalog/packages/ns_package.py +++ b/catalog/packages/ns_package.py @@ -81,7 +81,8 @@ def ns_get_csar(csar_id): ret = NsPackage().get_csar(csar_id) except CatalogException as e: return [1, e.message] - except: + except Exception as e: + logger.error(e.message) logger.error(traceback.format_exc()) return [1, str(sys.exc_info())] return ret @@ -97,7 +98,8 @@ def parse_nsd(csar_id, inputs): ret = {"model": toscaparser.parse_nsd(csar_path, inputs)} except CatalogException as e: return [1, e.message] - except: + except Exception as e: + logger.error(e.message) logger.error(traceback.format_exc()) return [1, str(sys.exc_info())] return [0, ret] |