Added IndexError to the except line.

pull/17/head
Christian Jacobs 2013-09-30 17:52:01 +01:00
rodzic 18de3ce518
commit 99ab2c3924
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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