Skip to content

Commit 358b2f1

Browse files
committed
Add BadRequest exception
1 parent 84010d9 commit 358b2f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

toggl_python/exceptions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
class BadRequest(Exception):
2+
pass
3+
4+
15
class Unauthorized(Exception):
26
pass
37

@@ -19,6 +23,7 @@ class NotSupported(Exception):
1923

2024

2125
STATUS_2_EXCEPTION = {
26+
400: BadRequest,
2227
401: Unauthorized,
2328
403: Forbidden,
2429
404: NotFound,

0 commit comments

Comments
 (0)