Re-raise authentication errors

This commit is contained in:
Kumi 2022-09-26 11:38:21 +00:00
parent c43df9e97f
commit 99e6e9392a
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -93,6 +93,8 @@ class Adonis:
try: try:
result = self.requestCrewPortal("DG_ProfilePictureRead", data) result = self.requestCrewPortal("DG_ProfilePictureRead", data)
except AdonisAuthenticationDeniedError:
raise
except AdonisError: except AdonisError:
return None return None
@ -120,6 +122,8 @@ class Adonis:
try: try:
result = self.requestIntegration("GNL_APMCrewListViews", data) result = self.requestIntegration("GNL_APMCrewListViews", data)
except AdonisAuthenticationDeniedError:
raise
except AdonisError: except AdonisError:
result = None result = None