Skip to content

Commit

Permalink
Lint python code
Browse files Browse the repository at this point in the history
  • Loading branch information
Suvid-Singhal committed Jan 23, 2025
1 parent 92457d3 commit 31cecaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion listenbrainz/webserver/views/user_timeline_event_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ def create_thanks_event(user_name):
data = orjson.loads(request.get_data())
except (ValueError, KeyError) as e:
raise APIBadRequest(f"Invalid JSON: {str(e)}")

if 'metadata' not in data:
raise APIBadRequest("JSON document must contain metadata", data)

Expand Down

0 comments on commit 31cecaa

Please sign in to comment.