summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-20 14:18:03 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-20 14:18:03 +0100
commit2a29e9a99b98f9060284a1116ad82bacaa04fb6f (patch)
treebbb411693ab93ab6390efb1dddb009037ed610d5
parent6ec2390e40ba4b0f6e10a2c8ce858d3431b34964 (diff)
downloadabrt-2a29e9a99b98f9060284a1116ad82bacaa04fb6f.tar.gz
abrt-2a29e9a99b98f9060284a1116ad82bacaa04fb6f.tar.xz
abrt-2a29e9a99b98f9060284a1116ad82bacaa04fb6f.zip
do not report uid resolution error as *error*; report UID -1 as "N/A"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--src/Gui/CCMainWindow.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index ee802a88..f34ac2e6 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -202,10 +202,12 @@ class MainWindow():
except:
icon = None
if os.getuid() == 0:
- try:
- user = pwd.getpwuid(int(entry.getUID()))[0]
- except Exception, e:
- user = _("Can't get username for uid %s" % entry.getUID())
+ user = "N/A"
+ if entry.getUID() != "-1":
+ try:
+ user = pwd.getpwuid(int(entry.getUID()))[0]
+ except Exception, e:
+ user = "UID: %s" % entry.getUID()
n = self.dumpsListStore.append([icon, entry.getPackage(), entry.getExecutable(),
entry.getTime("%c"), entry.getCount(), user, entry.isReported(), entry])
else: