From 47501302d9c1055dbf8440bf2bbb2d4e81b5d7a4 Mon Sep 17 00:00:00 2001 From: Laurie Clark-Michalek Date: Thu, 9 Jun 2011 12:59:52 +0000 Subject: Added some logging to a couple of silent errors --- archey3 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'archey3') 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]) -- cgit v1.2.3-54-g00ecf