Skip to content

Commit

Permalink
fix incorrect error when uploading existing PRD
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 committed Dec 4, 2024
1 parent 29c3a41 commit 3697ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getwvkeys/libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def upload_prd(self, prd_data: str, user_id: str) -> str:
user.prds.append(device)
self.db.session.commit()
else:
raise Exception("PRD already uploaded, please use the existing hash found on the profile page.")
raise BadRequest("PRD already uploaded, please use the existing hash found on the profile page.")

return device.hash

Expand Down

0 comments on commit 3697ddd

Please sign in to comment.