From ae0b072b7598629b35850be2d05c52a23b9d9468 Mon Sep 17 00:00:00 2001 From: hugosenari Date: Fri, 14 Sep 2018 15:06:17 +0100 Subject: [PATCH] [GTK3] Fix config default_load_path keyerror --- deluge/ui/gtk3/addtorrentdialog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtk3/addtorrentdialog.py b/deluge/ui/gtk3/addtorrentdialog.py index 947dcd072..12f8dea2b 100644 --- a/deluge/ui/gtk3/addtorrentdialog.py +++ b/deluge/ui/gtk3/addtorrentdialog.py @@ -675,7 +675,10 @@ class AddTorrentDialog(component.Component): # Load the 'default_load_path' from the config self.config = ConfigManager('gtk3ui.conf') - if self.config['default_load_path'] is not None: + if ( + 'default_load_path' in self.config + and self.config['default_load_path'] is not None + ): chooser.set_current_folder(self.config['default_load_path']) # Run the dialog