Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
BinamB committed Feb 16, 2021
1 parent 8b57e76 commit fe41c2e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fence/job/visa_update_cronjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,13 @@ def _pick_client(self, visa):
if visa.type in self.visa_types["ras"]:
client = self.ras_client
else:
raise Exception("Visa type {} not configured in fence-config".format(visa.type))
raise Exception(
"Visa type {} not configured in fence-config".format(visa.type)
)
if not client:
raise Exception("Visa Client not set up or not avaialable for type {}".format(visa.type))
raise Exception(
"Visa Client not set up or not avaialable for type {}".format(visa.type)
)
return client

def _verify_jwt_token(self, visa):
Expand Down

0 comments on commit fe41c2e

Please sign in to comment.