You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by av...@apache.org on 2017/04/03 14:45:12 UTC

[2/2] incubator-ariatosca git commit: fix handling storage errors

fix handling storage errors

We tried to access a wrong attribute of the exception.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/aa75638a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/aa75638a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/aa75638a

Branch: refs/heads/ARIA-48-aria-cli
Commit: aa75638a25befaa3b7f5b476bee27b011c888fe0
Parents: e1000c3
Author: Avia Efrat <av...@gigaspaces.com>
Authored: Mon Apr 3 17:10:17 2017 +0300
Committer: Avia Efrat <av...@gigaspaces.com>
Committed: Mon Apr 3 17:10:17 2017 +0300

----------------------------------------------------------------------
 aria/cli/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/aa75638a/aria/cli/utils.py
----------------------------------------------------------------------
diff --git a/aria/cli/utils.py b/aria/cli/utils.py
index fff8e3a..950c295 100644
--- a/aria/cli/utils.py
+++ b/aria/cli/utils.py
@@ -153,7 +153,7 @@ def generate_progress_handler(file_path, action='', max_bar_length=80):
 
 
 def handle_storage_exception(e, model_class, name):
-    if 'UNIQUE constraint failed' in e.msg:
+    if 'UNIQUE constraint failed' in e.message:
         msg = 'Could not store {model_class} `{name}`\n' \
               'There already a exists a {model_class} with the same name' \
               .format(model_class=model_class, name=name)