guard against non mtime

master
vilmibm 2017-04-17 05:30:09 +00:00
parent d443add589
commit 4199ac7fd2
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ def tdp():
now = datetime.datetime.now()
users = sorted(
(tdp_user(u, h) for u, h in get_users()),
key=lambda x:x['mtime'],
key=lambda x:x.get('mtime', 0),
reverse=True)
# TDP format data