diff --git a/installsystems/database.py b/installsystems/database.py index bd28df30e7752aea4f700a5f76541dbc291a5496..14286ceee56df166f75f93eff9896faf18f75c1d 100644 --- a/installsystems/database.py +++ b/installsystems/database.py @@ -45,6 +45,8 @@ class Database(object): if not istools.isfile(path): raise Exception("Database must be local") self.path = os.path.abspath(path) + if not os.path.exists(self.path): + raise Exception("Database not exists") self.conn = sqlite3.connect(self.path, isolation_level=None) self.conn.execute("PRAGMA foreign_keys = ON")