changeset 2459 | 2dfb12aa98e8 |
parent 2205 | 53d0be594162 |
child 2524 | 0c32a79b1684 |
--- a/src/modules/client/history.py Mon Jul 11 19:02:25 2011 -0700 +++ b/src/modules/client/history.py Tue Jul 12 15:12:14 2011 +1200 @@ -369,7 +369,10 @@ # Mark the operation as having started and record # other, relevant information. op.start_time = misc.time_to_timestamp(None) - op.username = portable.get_username() + try: + op.username = portable.get_username() + except KeyError: + op.username = "unknown" op.userid = portable.get_userid() ca = None