From 3e32142e8ae6f6fd121f3a28f5d582c5d41b78f5 Mon Sep 17 00:00:00 2001 From: "Christian T. Jacobs" Date: Mon, 3 Jul 2017 01:10:11 +0100 Subject: [PATCH] Place the ADIF object outside the 'if' statement. --- pyqso/logbook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyqso/logbook.py b/pyqso/logbook.py index aeb5c2f..026d764 100644 --- a/pyqso/logbook.py +++ b/pyqso/logbook.py @@ -555,12 +555,12 @@ class Logbook: path = None dialog.destroy() + # Read the records. + adif = ADIF() if(path is None): logging.debug("No file path specified.") return else: - # Read the records. - adif = ADIF() records = adif.read(path) if(records is None): error(parent=self.application.window, message="Could not import the log.")