projects
/
wifihood
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc2b7ae
)
BUGFIX : protect against double closing
author
javiplx
<javiplx@gmail.com>
Sun, 10 Oct 2010 11:58:37 +0000
(11:58 +0000)
committer
javiplx
<javiplx@gmail.com>
Sun, 10 Oct 2010 11:58:37 +0000
(11:58 +0000)
git-svn-id: file:///svnroot/wifihood/trunk/wifiscanner@41
c51dfc6a
-5949-4919-9c8e-
f207a149c383
wifimap/db.py
patch
|
blob
|
history
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 :