Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't fail if there's a gstreamer error before a song is initialized

  • Loading branch information...
commit 3731602669e763fcb53fa460bc2362b8ef5959b6 1 parent 20a754d
@kevinmehall kevinmehall authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  bin/pithos
View
3  bin/pithos
@@ -535,7 +535,8 @@ class PithosWindow(gtk.Window):
def on_gst_error(self, bus, message):
err, debug = message.parse_error()
logging.error("Gstreamer error: %s, %s" % (err, debug))
- self.current_song.message = "Error: "+str(err)
+ if self.current_song:
+ self.current_song.message = "Error: "+str(err)
self.gstreamer_error = str(err)
self.gstreamer_errorcount_1 += 1
self.next_song()
Please sign in to comment.
Something went wrong with that request. Please try again.