Merge pull request #198 from MartynHare/minor-fixes

Fixes issue #197 - modified user stats to use pwd.getpwuid
This commit is contained in:
evilsocket 2018-10-08 01:59:38 +02:00 committed by GitHub
commit c10e7a30c8
Failed to generate hash of commit

View file

@ -205,6 +205,8 @@ class StatsDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
pw_name = pwd.getpwuid(int(uid)).pw_name
except KeyError:
pw_name = "(UID error)"
except Exception:
pw_name = "error"
finally:
by_users["%s (%s)" % (pw_name, uid)] = hits
else: