summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps/room
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-10-25 11:02:44 +0200
committerLeif Johansson <leifj@sunet.se>2011-10-25 11:02:44 +0200
commitdc8aeeb6ceb22b9477d844b78eb5d7c61bdb56ec (patch)
tree8e69f2cdba414b5d083aee4c1cc697b1bd66dd11 /src/meetingtools/apps/room
parentbe5be665fefb00ee5ce8726017bf8c9b37410fc5 (diff)
test
Diffstat (limited to 'src/meetingtools/apps/room')
-rw-r--r--src/meetingtools/apps/room/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py
index 4f6582a..aa08d9e 100644
--- a/src/meetingtools/apps/room/views.py
+++ b/src/meetingtools/apps/room/views.py
@@ -238,7 +238,7 @@ def _import_room(request,acc,r):
modified = False
room = None
- if abs(room.lastupdate() - time.time()) < IMPORT_TTL:
+ if room and (abs(room.lastupdate() - time.time()) < IMPORT_TTL):
return room
if r.has_key('urlpath'):