diff options
author | 2020-03-23 12:01:38 +0100 | |
---|---|---|
committer | 2020-03-23 12:01:38 +0100 | |
commit | 98c69958a5f463ebaa5b75ef3188d599ead93692 (patch) | |
tree | 47bc930fdd5abdc59f050c085c9ede4f393b69ea /catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py | |
parent | 5944b441468500fffa7111b5dea9181461ae1303 (diff) |
Fixed import in sdc-BE-init python scripts
Issue-ID: SDC-2784
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
Change-Id: I72eb129c5c4cb63fdf0ab13a6128d555b49b6d0c
Diffstat (limited to 'catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py')
-rw-r--r-- | catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py b/catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py index e9cebfe9a8..aa60e4d49d 100644 --- a/catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py +++ b/catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py @@ -1,5 +1,3 @@ -import yaml - from importNormativeTypes import * @@ -34,7 +32,7 @@ def upgradeSolTypesPerConfigFile(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 sol type " + solType + ". " + str(result[1]) - except yaml.YAMLError as exc: + except Exception as exc: print(exc) return results |