Skip to content

Commit c00bf80

Browse files
committed
fix bug with KSEFAuthFailError construction
1 parent a049fe8 commit c00bf80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pyksef/auth/state.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import json
12
import time
23

34
import requests
@@ -12,7 +13,8 @@ class KSEFAuthFailError(RuntimeError):
1213

1314
def __init__(self, auth_state):
1415
status_code = auth_state["status"]["code"]
15-
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}")
1618
self.auth_state = auth_state
1719

1820

0 commit comments

Comments
 (0)