aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/resources/scripts/import/tosca/upgradeNfvTypes.py
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/src/main/resources/scripts/import/tosca/upgradeNfvTypes.py')
-rw-r--r--catalog-be/src/main/resources/scripts/import/tosca/upgradeNfvTypes.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/catalog-be/src/main/resources/scripts/import/tosca/upgradeNfvTypes.py b/catalog-be/src/main/resources/scripts/import/tosca/upgradeNfvTypes.py
index 81ee843893..ce939878ae 100644
--- a/catalog-be/src/main/resources/scripts/import/tosca/upgradeNfvTypes.py
+++ b/catalog-be/src/main/resources/scripts/import/tosca/upgradeNfvTypes.py
@@ -1,5 +1,3 @@
-import yaml
-
from importNormativeTypes import *
@@ -35,7 +33,7 @@ def upgradeNfvTypesPerConfigFile(scheme, be_host, be_port, admin_user, base_dir,
results.append(result)
if result[1] is None or result[1] not in response_codes:
print "Failed creating nfv type " + nfvType + ". " + str(result[1])
- except yaml.YAMLError as exc:
+ except Exception as exc:
print(exc)
return results