Skip to content

Commit 576ac4e

Browse files
adds custom exception to use in api calls.
1 parent d22d8a5 commit 576ac4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pythonanywhere_core/exceptions.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@ class SanityException(Exception):
66
pass
77

88

9-
class NoTokenError(Exception):
9+
class PythonAnywhereApiException(Exception):
10+
pass
11+
12+
13+
class NoTokenError(PythonAnywhereApiException):
1014
pass

0 commit comments

Comments
 (0)