diff --git a/VERSION b/VERSION index b28ed3b3..c93f8d4a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-10-28 12:01:03) stable +Version 2.2.1 (2012-10-29 08:53:44) stable diff --git a/scripts/sessions2trash.py b/scripts/sessions2trash.py index 3995014e..8609c480 100755 --- a/scripts/sessions2trash.py +++ b/scripts/sessions2trash.py @@ -95,8 +95,9 @@ class SessionSetDb(SessionSet): """Return list of SessionDb instances for existing sessions.""" sessions = [] table = current.response.session_db_table - for row in table._db(table.id > 0).select(): - sessions.append(SessionDb(row)) + if table: + for row in table._db(table.id > 0).select(): + sessions.append(SessionDb(row)) return sessions