Skip to content
Snippets Groups Projects
Commit e8969311 authored by Marcus's avatar Marcus
Browse files

black..

parent d7e7320f
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ def main():
print(message)
sys.exit(2)
try: # User.__init__ tries finding userinfo in data["user"]["userinfo"]
try: # User.__init__ tries finding userinfo in data["user"]["userinfo"]
user = User(data)
except KeyError:
try:
......@@ -30,10 +30,9 @@ def main():
print("cannot find required information in input json.")
sys.exit(3)
except Exception as e:
print(F"Unhandled Exception: {e}")
print(f"Unhandled Exception: {e}")
raise
print(f"User: {user.data.username}")
for grp in sorted(user.data.groups):
print(f" {grp}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment