Skip to content

Commit

Permalink
Fix lastlogin bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ikagod authored Oct 19, 2024
1 parent 7bdd39a commit 9a4b82b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ikabot/web/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,8 @@ def __login(self, retries=0):
for srv in servers
if srv["accountGroup"] == account_group
][0]
lastlogin = lastloginTimetoString(account["lastLogin"])
try: lastlogin = lastloginTimetoString(account["lastLogin"])
except: lastlogin = 'Unknown'

i += 1
pad = " " * (max_name - len(account["name"]))
Expand Down

0 comments on commit 9a4b82b

Please sign in to comment.