You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: presalytics/client/api.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -225,7 +225,8 @@ def __init__(
225
225
iftoken:
226
226
self.username=None
227
227
else:
228
-
raisepresalytics.lib.exceptions.MissingConfigException("Configuration variable PRESALYTICS_USERNAME is required when client is not initalized with an API token. Please reconfigure and retry.")
228
+
ifnotclient_secret:
229
+
raisepresalytics.lib.exceptions.MissingConfigException("when not passing tokens directly, a clien must have either a client_secrect or a username")
0 commit comments