Place the ADIF object outside the 'if' statement.

pull/61/head
Christian T. Jacobs 2017-07-03 01:10:11 +01:00
rodzic 77047d5670
commit 3e32142e8a
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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.")