]> err.no Git - dak/commitdiff
fixup
authorMark Hymers <mhy@debian.org>
Tue, 27 Oct 2009 15:28:20 +0000 (15:28 +0000)
committerMark Hymers <mhy@debian.org>
Tue, 27 Oct 2009 15:28:20 +0000 (15:28 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/dbconn.py

index adecc38a7f060d6c9876be399e6d6b4df3fb3034..abf0607441d634eeceb8601422e9c4a82dc7ff0b 100755 (executable)
@@ -84,6 +84,7 @@ def session_wrapper(fn):
                 # Session is last argument in args
                 session = args[-1]
                 if session is None:
+                    args = list(args)
                     session = args[-1] = DBConn().session()
                     private_transaction = True