Commits

Damián Nohales committed 914c033

Error handling fixed.

Comments (0)

Files changed (3)

             _(
 """GrooveShark service has probably changed or is not working!
 gSharkDown will not works propperly, so please be patient until we find a solution.
-Also, this may usually caused by a proxy misconfiguration\nplease check your proxy configuration.
+Also, this may usually caused by a proxy misconfiguration please check your proxy configuration.
 
 The error was: %s""")
             % error
     def get_streaming_url(self):
         try:
             key = groove.getStreamKeyFromSongIDEx(self.get_id())
-        except Exception, e:
+        except Exception as e:
             print "[Streaming URL error]", e.__str__()
             raise e
         
     _isInitialized = True
     _initializingLock.release()
     
+    if _initFailed == True:
+        raise Exception(_("Grooveshark is not initialized"))
+    
 def onInitError(callback):
     global _onInitError
     _onInitError = callback