Skip to content
Snippets Groups Projects
Commit eeb31589 authored by Albert Feghaly's avatar Albert Feghaly
Browse files

Handle status code 403

parent 1804382b
No related branches found
No related tags found
1 merge request!20Resolve "Download datafile directly without asking for dataset ID"
......@@ -125,6 +125,13 @@ class Client:
'Please double-check your identification information.'
)
elif r.status_code == 403:
sys.stderr.write(
'[Permission denied] ' +
'The user does not have access permissions.\n'
)
return None
elif r.status_code == 404:
sys.stderr.write(
'[Not found] ' +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment