Skip to content

Commit

Permalink
fix in error handling of ForwardViewer (LanguageMachines/PICCL#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Aug 27, 2019
1 parent 8d58dbf commit d08cc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clam/common/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def view(self, file, **kwargs):
url = r.headers['Location']
return flask.redirect(url)
else:
return "Unexpected response from Forward service (HTTP " + str(r.status_code) + ", target was " + url + "): " + r.text
return "Unexpected response from Forward service (HTTP " + str(r.status_code) + "): " + str(r.text)



Expand Down

0 comments on commit d08cc6b

Please sign in to comment.