Skip to content

Commit 3697ddd

Browse files
committed
fix incorrect error when uploading existing PRD
1 parent 29c3a41 commit 3697ddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getwvkeys/libraries.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def upload_prd(self, prd_data: str, user_id: str) -> str:
217217
user.prds.append(device)
218218
self.db.session.commit()
219219
else:
220-
raise Exception("PRD already uploaded, please use the existing hash found on the profile page.")
220+
raise BadRequest("PRD already uploaded, please use the existing hash found on the profile page.")
221221

222222
return device.hash
223223

0 commit comments

Comments
 (0)