summaryrefslogtreecommitdiff
path: root/archey3
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <bluepeppers@archlinux.us>2011-06-09 12:59:52 +0000
committerLaurie Clark-Michalek <bluepeppers@archlinux.us>2011-06-09 12:59:52 +0000
commit47501302d9c1055dbf8440bf2bbb2d4e81b5d7a4 (patch)
tree1db1756f66acfbad864db1612405ec43302af08f /archey3
parenta7ccb2e66dc09d74f92f6f35844f014ff61320fb (diff)
Added some logging to a couple of silent errors
Diffstat (limited to 'archey3')
-rwxr-xr-xarchey35
1 files changed, 3 insertions, 2 deletions
diff --git a/archey3 b/archey3
index 5c69c4f..800f12a 100755
--- a/archey3
+++ b/archey3
@@ -161,7 +161,7 @@ class display(object):
self.process = Popen(cmd.split(), stdin=PIPE, stdout=PIPE,
stderr=PIPE)
except Exception as e:
- pass
+ self.logger.error("Could not run command {0}".format(cmd))
def render(self):
(stdoutdata, stderrdata) = self.process.communicate(self.stdindata
@@ -456,7 +456,8 @@ class mpdDisplay(display):
stats['songs'] = lines[2].split(':')[1].strip()
#if people don't have mpc installed then return None)
except:
- return False
+ self.logger.error("Could not parse mpc output, is mpc installed?")
+ return
return ('{statname} in MPD database'.format(statname=self.stat.title()),
stats[self.stat])