We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a049fe8 commit c00bf80Copy full SHA for c00bf80
src/pyksef/auth/state.py
@@ -1,3 +1,4 @@
1
+import json
2
import time
3
4
import requests
@@ -12,7 +13,8 @@ class KSEFAuthFailError(RuntimeError):
12
13
14
def __init__(self, auth_state):
15
status_code = auth_state["status"]["code"]
- super(f"Authentication failed with status code: {status_code}")
16
+ auth_state_str = json.dumps(auth_state)
17
+ super(KSEFAuthFailError, self).__init__(f"Authentication failed with status code: {status_code}: {auth_state_str}")
18
self.auth_state = auth_state
19
20
0 commit comments