author | Tim Foster <tim.s.foster@oracle.com> |
Tue, 12 Jul 2011 15:12:14 +1200 | |
changeset 2459 | 2dfb12aa98e8 |
parent 2458 | 7c1227ad555e |
child 2460 | 87a05100137c |
--- 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