projects
/
cs-p2p-next.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9760015
)
ppf: Update select_swarms to return None on error.
author
Razvan Deaconescu
<razvan.deaconescu@cs.pub.ro>
Wed, 17 Aug 2011 14:20:23 +0000
(17:20 +0300)
committer
Razvan Deaconescu
<razvan.deaconescu@cs.pub.ro>
Wed, 17 Aug 2011 14:22:13 +0000
(17:22 +0300)
ppf/db/access.py
patch
|
blob
|
history
diff --git
a/ppf/db/access.py
b/ppf/db/access.py
index
2d303e3
..
15e799c
100644
(file)
--- a/
ppf/db/access.py
+++ b/
ppf/db/access.py
@@
-135,10
+135,11
@@
class SQLiteDatabaseAccess(DatabaseAccess):
if show == True:
for row in self.cursor:
print row
- else:
-
return self.cursor
+
+ return self.cursor
except sqlite3.Error, e:
print("[swarms]An error ocurred: ", e.args[0])
+ return None
def delete_swarms(self, swarm_id=-1):
try: