Permalink
Browse files

Fix mogrify crashing on empty args list

  • Loading branch information...
1 parent f0aa9f3 commit 5f5d35f5c7e9708e62ca43aa4743610e2cb696ae @brendonh committed Apr 24, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 schemup/dbs/postgres.py
View
5 schemup/dbs/postgres.py
@@ -11,7 +11,10 @@ def execute(self, query, args=(), cur=None, log=True):
cur = self.conn.cursor()
if log:
- self.runLog.append(cur.mogrify(query, args))
+ if args:
+ self.runLog.append(cur.mogrify(query, args))
+ else:
+ self.runLog.append(query)
if not self.dryRun:
cur.execute(query, args)

0 comments on commit 5f5d35f

Please sign in to comment.