Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit 89967ce

Browse files
Update README.md
1 parent 6d489f6 commit 89967ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ from dsjapi.exceptions import *
5858
def index (data):
5959
user = getUserById (data["id"])
6060
if user is None:
61-
raise NotFoundException ("User not found", { "id": data["id"] })
61+
raise NotFoundException ("User not found")
6262
if user.getPassword () != data["password"]:
63-
raise AuthenticationException ("Wrong password", { "id": data["id"] })
63+
raise AuthenticationException ("Wrong password")
6464
return { "id": user.getId (), "score": user.getScore () }
6565
```
6666
### Custom fields

0 commit comments

Comments
 (0)