changeset 223:067bde207c23

Fix upgrade for installs with no stored reports. Thanks to Matt Good for catching this.
author cmlenz
date Mon, 26 Sep 2005 22:49:15 +0000
parents 206711a0b276
children 5f2249bef2e7
files bitten/upgrades.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/upgrades.py
+++ b/bitten/upgrades.py
@@ -215,7 +215,7 @@
     cursor = db.cursor()
     cursor.execute("SELECT report,item,value FROM bitten_report_item "
                    "WHERE name='file'")
-    rows = cursor.fetchall()
+    rows = cursor.fetchall() or []
     for report, item, value in rows:
         if '\\' in value:
             cursor.execute("UPDATE bitten_report_item SET value=%s "
Copyright (C) 2012-2017 Edgewall Software