From fad029849031efacf28bf97648cee466b74333a7 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 9 Oct 2017 18:09:45 -0700 Subject: [PATCH] Fix a bug when importing settings --- openlp/core/ui/mainwindow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 177d9b593..8cc83d474 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -899,6 +899,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, RegistryProperties): try: value = import_settings.value(section_key) except KeyError: + value = None log.warning('The key "{key}" does not exist (anymore), so it will be skipped.'.format(key=section_key)) if value is not None: settings.setValue('{key}'.format(key=section_key), value)