See #297: linting of various, uncommon errors

This commit is contained in:
Eliot Berriot 2018-06-10 12:06:46 +02:00
parent ab80dffeea
commit d17ceec1f0
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
29 changed files with 39 additions and 109 deletions

View file

@ -35,7 +35,7 @@ def get_actor_data(actor_url):
response.raise_for_status()
try:
return response.json()
except:
except Exception:
raise ValueError("Invalid actor payload: {}".format(response.text))