mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 10:29:28 +02:00
See #297: linting of various, uncommon errors
This commit is contained in:
parent
ab80dffeea
commit
d17ceec1f0
29 changed files with 39 additions and 109 deletions
|
@ -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))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue