Silenced RRD read errors.
authorStanislaw Klekot <dozzie@jarowit.net>
Tue, 22 Oct 2013 19:08:25 +0000 (21:08 +0200)
committerStanislaw Klekot <dozzie@jarowit.net>
Tue, 22 Oct 2013 19:08:25 +0000 (21:08 +0200)
This is way too broad silencing, though.

rrdplot

diff --git a/rrdplot b/rrdplot
index 8560d44..ed0e2af 100755 (executable)
--- a/rrdplot
+++ b/rrdplot
@@ -78,10 +78,13 @@ class Base:
     self.window.show()
 
   def reload_image(self):
-    image_pixbuf = self.rrdplot.plot_pixbuf()
-    self.image.set_from_pixbuf(image_pixbuf)
+    try:
+      image_pixbuf = self.rrdplot.plot_pixbuf()
+      self.image.set_from_pixbuf(image_pixbuf)
+    except:
+      pass # FIXME: don't ignore all the exceptions
 
-  def destroy(self, widget, data=None):
+  def destroy(self, widget):
     gtk.main_quit()
 
   def main(self):