projects
/
wifihood
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
BUGFIX : protect against double closing
[wifihood]
/
wifimap
/
db.py
diff --git
a/wifimap/db.py
b/wifimap/db.py
index
42edfc3
..
f04558b
100644
(file)
--- a/
wifimap/db.py
+++ b/
wifimap/db.py
@@
-41,8
+41,9
@@
class database :
self.db.executescript( create_db )
def close ( self ) :
- self.db.close()
- self.db = None
+ if self.db :
+ self.db.close()
+ self.db = None
def is_open ( self ) :
if not self.db :