Skip to content

Commit

Permalink
style: fix trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
kikkomep committed Nov 22, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent b0a778a commit fbdd924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lifemonitor/schemas/controller.py
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ def validate():
try:
data = yaml.safe_load(request.data)
except yaml.parser.ParserError:
data = json.loads(request.data.decode())
data = json.loads(request.data.decode())
finally:
if not data:
raise BadRequestException(title="Invalid file format", detail="It should be a JSON or YAML file")

0 comments on commit fbdd924

Please sign in to comment.