[gnome-music/wip/jfelder/3-34-music-dir-not-set: 2/2] emptyview: Do not crash if xdg music dir is not set
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/3-34-music-dir-not-set: 2/2] emptyview: Do not crash if xdg music dir is not set
- Date: Sun, 10 Nov 2019 12:44:52 +0000 (UTC)
commit 95591440e389cf706ddc20cece107eb8f00a64c5
Author: Jean Felder <jfelder src gnome org>
Date: Sun Nov 10 13:42:21 2019 +0100
emptyview: Do not crash if xdg music dir is not set
gnomemusic/views/emptyview.py | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gnomemusic/views/emptyview.py b/gnomemusic/views/emptyview.py
index 1e4c989c..6c96cb24 100644
--- a/gnomemusic/views/emptyview.py
+++ b/gnomemusic/views/emptyview.py
@@ -69,6 +69,7 @@ class EmptyView(Gtk.Stack):
GLib.UserDirectory.DIRECTORY_MUSIC)
assert music_folder is not None
except (TypeError, AssertionError):
+ self._content_text = ""
print("XDG Music dir is not set")
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]