ソースを参照

Raises if can't find DB file

Maxime Alves LIRMM@home 3年前
コミット
7eea924834
1個のファイルの変更3行の追加0行の削除
  1. 3
    0
      pyheatpump/db.py

+ 3
- 0
pyheatpump/db.py ファイルの表示

@@ -76,6 +76,9 @@ class DB():
76 76
             except sqlite3.IntegrityError as e:
77 77
                 print(e)
78 78
                 return []
79
+            except sqlite3.OperationalError as e:
80
+                raise Exception('Can\'t find DB file %s'.format(filename)) from e
81
+
79 82
 
80 83
 
81 84
 class RowClass(object):

読み込み中…
キャンセル
保存