Commit fd195b8c authored by Dominique Leuenberger's avatar Dominique Leuenberger Committed by Vadim Rutkovsky

Do not crash if we happen to come across a filename we can't decode

https://bugzilla.gnome.org/show_bug.cgi?id=725355
parent b73ba4b5
......@@ -237,7 +237,11 @@ class AlbumArtCache:
uri_file = Gio.File.new_for_path(uri)
basename = uri_file.get_basename()
title = GLib.uri_unescape_string(basename, '')
try:
title = GLib.uri_unescape_string(basename, '')
except:
title = "Filename could not be decoded..."
pass
if escaped:
return GLib.markup_escape_text(title)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment