Skip to content
Permalink
Browse files

Fixed get_server_news error handling

"response.code" should be "response.status_code"

In which circumstance is this reached?

This error generated an exception causing vistrails to close.
  • Loading branch information...
rexissimus committed Jun 9, 2016
1 parent dd51277 commit c76c109349769fee1280f85c22678380a2f9cd39
Showing with 1 addition and 1 deletion.
  1. +1 −1 vistrails/core/reportusage.py
@@ -265,7 +265,7 @@ def get_server_news():
'304 File is up to date, no data returned',
response=resp)
except requests.RequestException, e:
if not e.response or e.response.code != 304:
if not e.response or e.response.status_code != 304:
debug.warning("Can't download server news", e)
else:
try:

1 comment on commit c76c109

@remram44

This comment has been minimized.

Copy link
Member

commented on c76c109 Jul 6, 2016

Bug is only triggered after 1244feb, which is post 2.2.4. The released version shouldn't be affected.

Please sign in to comment.
You can’t perform that action at this time.