kopia lustrzana https://github.com/ctjacobs/pyqso
Added IndexError to the except line.
rodzic
18de3ce518
commit
99ab2c3924
|
@ -127,7 +127,8 @@ class Log(Gtk.ListStore):
|
|||
liststore_entry.insert(0, index) # Add the record's index.
|
||||
self.append(liststore_entry)
|
||||
logging.debug("Successfully added the record to the log.")
|
||||
except:
|
||||
except (sqlite.Error, IndexError) as e:
|
||||
logging.error(e)
|
||||
logging.error("Could not add the record to the log.")
|
||||
return
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue