changeset 347:2b5d886a248e 0.5.x 0.5.3

Ported [361] to 0.5.x.
author cmlenz
date Thu, 13 Apr 2006 08:20:50 +0000
parents 6091ebc82dfc
children 4a0de8d10fe1
files bitten/model.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/model.py
+++ b/bitten/model.py
@@ -739,7 +739,7 @@
         log.id = id
         cursor.execute("SELECT level,message FROM bitten_log_message "
                        "WHERE log=%s ORDER BY line", (id,))
-        log.messages = cursor.fetchall()
+        log.messages = cursor.fetchall() or []
 
         return log
 
Copyright (C) 2012-2017 Edgewall Software