Commits

Sviatoslav Sydorenko committed ced830f

Catching py3.1 error

  • Participants
  • Parent commits 89d309d

Comments (0)

Files changed (1)

File src/blueberrypy/plugins.py

             logging.raiseExceptions = self.raiseExceptions
             dictConfig(self.config)
             self.bus.log("Loggers configured")
+        except (NameError, ValueError) as e:
+            self.bus.log(traceback=True)
+    
+            bug = "global name 'ST_MTIME' is not defined"
+            if (str(e).find(bug) != -1):
+                self.bus.log("It seems it's a bug in Python 3.1.3 (http://bugs.python.org/issue10810). You may fix it manually.")
         except Exception:
             self.bus.log(traceback=True)
     start.priority = 80