-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle errors messages from delete response stream #1697
Conversation
05502a2
to
592233c
Compare
Codecov Report
@@ Coverage Diff @@
## master #1697 +/- ##
==========================================
- Coverage 87.17% 86.99% -0.18%
==========================================
Files 59 59
Lines 8808 8821 +13
Branches 1435 1438 +3
==========================================
- Hits 7678 7674 -4
- Misses 863 897 +34
+ Partials 267 250 -17
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
neuromation/api/storage.py
Outdated
err_text = server_message["error"] | ||
os_errno = server_message.get("errno", None) | ||
if os_errno is not None: | ||
os_errno = errno.__dict__.get(os_errno, os_errno) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm missed. What is errno
type here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errno
here is module
instance (it comes from import errno
). This is code is almost same as in _Core.request
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add similar code for other response stream (storage ls
, job ls
)?
3ffbc26
to
5e4acc6
Compare
Adds support of neuro-inc/platform-storage-api#239