diff options
-rw-r--r-- | catalog/packages/nf_package.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/catalog/packages/nf_package.py b/catalog/packages/nf_package.py index f97c6ceb..a6916e99 100644 --- a/catalog/packages/nf_package.py +++ b/catalog/packages/nf_package.py @@ -39,7 +39,8 @@ def nf_get_csars(): ret = NfPackage().get_csars() 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 @@ -51,7 +52,8 @@ def nf_get_csar(csar_id): ret = NfPackage().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 @@ -67,7 +69,8 @@ def parse_vnfd(csar_id, inputs): ret = {"model": toscaparser.parse_vnfd(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] |