Revert to the basic built-in list of modes if there's a database error.

modes-update
Christian Jacobs 2019-04-14 18:07:19 +01:00
rodzic a288bf23dd
commit 906e671d1a
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -167,6 +167,7 @@ class Modes:
connection.close()
except sqlite3.Error as e:
logging.exception(e)
modes = self.basic # Revert to the basic built-in list.
return modes
def update(self, url):