Skip to content

Commit 3d053d1

Browse files
authored
SDK-355 (#343)
1 parent ba0742a commit 3d053d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cterasdk/cio/core/commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,8 @@ def _handle_response(self, r):
776776
def _handle_exception(self, e):
777777
path = self.path.relative
778778
error = exceptions.io.core.CreateLinkError(path)
779-
if e.error.response.error.msg == 'Resource does not exist':
779+
err_detail = e.error.response.error
780+
if hasattr(err_detail, 'msg') and err_detail.msg == 'Resource does not exist':
780781
raise error from exceptions.io.core.ObjectNotFoundError(path)
781782
raise error from e
782783

0 commit comments

Comments
 (0)