diff options
author | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2011-06-09 12:59:52 +0000 |
---|---|---|
committer | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2011-06-09 12:59:52 +0000 |
commit | 47501302d9c1055dbf8440bf2bbb2d4e81b5d7a4 (patch) | |
tree | 1db1756f66acfbad864db1612405ec43302af08f /archey3 | |
parent | a7ccb2e66dc09d74f92f6f35844f014ff61320fb (diff) |
Added some logging to a couple of silent errors
Diffstat (limited to 'archey3')
-rwxr-xr-x | archey3 | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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]) |