summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-04-12 21:02:52 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-04-12 21:02:52 +0200
commit39f786c905e1e78c283a1d3939876b0e6b1f86c4 (patch)
tree4bd4ccea674a78ee4cc7b46f31a8a34e38e59558
parent3092203fa9398856538a51d558cca5210d2d1a17 (diff)
downloadportato-39f786c905e1e78c283a1d3939876b0e6b1f86c4.tar.gz
portato-39f786c905e1e78c283a1d3939876b0e6b1f86c4.tar.bz2
portato-39f786c905e1e78c283a1d3939876b0e6b1f86c4.zip
Fix error when no 'format' entry is in the db section
Diffstat (limited to '')
-rw-r--r--portato/db/sql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/portato/db/sql.py b/portato/db/sql.py
index f5dc257..581ebc4 100644
--- a/portato/db/sql.py
+++ b/portato/db/sql.py
@@ -47,7 +47,7 @@ class SQLDatabase (Database):
updateFormat = False
if "format" not in session or session["format"] != self.FORMAT:
- debug("Need to update database format from '%s' to '%s'", session["format"], self.FORMAT)
+ debug("Need to update database format from '%s' to '%s'", session.get("format", "undefined"), self.FORMAT)
session["format"] = self.FORMAT
updateFormat = True