Commits

Josh VanderLinden  committed 05c5016

Trying to make the icon more robust

  • Participants
  • Parent commits 0bd63b3

Comments (0)

Files changed (2)

File zedify/app.py

 
         # connect to zmq
         self.sub = ctx.socket(zmq.SUB)
-        self.sub.connect(config.zedify.sub)
         self.sub.setsockopt(zmq.SUBSCRIBE, '')
+        self.sub.connect(config.zedify.sub)
 
     def run(self):
         """Accept messages from zmq and act upon them"""
 
             # loop until we're asked to close the app
             while not self.event.is_set():
-                socks = dict(poller.poll(1000))
-                if self.sub in socks:
-                    self.notify(self.sub.recv_json())
+                try:
+                    socks = dict(poller.poll(1000))
+                    if self.sub in socks:
+                        self.notify(self.sub.recv_json())
+                except:
+                    log.exception('Error')
 
         finally:
             if self.libnotify_ready:

File zedify/version.py

 __name__ = 'Zedify'
-__version__ = '0.0.2'
+__version__ = '0.0.3'
 __author__ = 'Josh VanderLinden'