Skip to content
Snippets Groups Projects
Commit 52b7900a authored by Aurélien Dunand's avatar Aurélien Dunand Committed by Seblu
Browse files

Missing parenthesises

parent 53ad1d5c
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,7 @@ class Repository(object):
a = self.db.ask("SELECT md5 FROM image WHERE name = ? AND version = ? LIMIT 1",
(name,version)).fetchone()
if a is None:
raise Exception("No such image %s version %s" % name, version)
raise Exception("No such image %s version %s" % (name, version))
b = self.db.ask("SELECT md5 FROM payload WHERE image_md5 = ?",
(a[0],)).fetchall()
return [ a[0] ] + [ x[0] for x in b ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment