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
logger.error("We got an http-error, proceding to emptying the auth.")
216
-
self._cleanup_netrc()
217
-
218
-
default_err_msg="Got an http-error, but it does not look like an account-lock or invalid password/username, is this something we should program for? - "
215
+
default_err_msg="""Got an http-error, but it does not look like an account-lock or invalid password/username,
216
+
is this something we should program for?
217
+
If you want to reset the auth manually call StatbankClient().reset_auth() or
218
+
StatbankAuth().reset_auth(). Alternatively edit the .netrc file directly.""".replace(
err_msg=f'Your account has been locked. Contact kundeservice@ssb.no to unlock. Errortext: {e.response_content.get("ExceptionMessage", "")}'
225
+
err_msg=f'Your account has been locked. Contact kundeservice@ssb.no to unlock. Resetting auth. Errortext: {e.response_content.get("ExceptionMessage", "")}'
f"TYPE CAREFULLY - The username and password you used may have been wrong. Errortext: {e.response_content.get('ExceptionMessage', '')}",
232
+
f"TYPE CAREFULLY - The username and password you used may have been wrong. Resetting Auth. Errortext: {e.response_content.get('ExceptionMessage', '')}",
0 commit comments