server/sources/__init__.py
changeset 6582 8eb7883b4223
parent 6427 c8a5ac2d1eaa
child 6722 3341521d857b
--- a/server/sources/__init__.py	Thu Oct 21 18:38:36 2010 +0200
+++ b/server/sources/__init__.py	Fri Oct 22 09:15:35 2010 +0200
@@ -55,7 +55,7 @@
     def __init__(self, ttl):
         # time to live in seconds
         if ttl <= 0:
-            raise ValueError('TimedCache initialized with a ttl of %ss' % self.ttl.seconds)
+            raise ValueError('TimedCache initialized with a ttl of %ss' % ttl.seconds)
         self.ttl = timedelta(seconds=ttl)
 
     def __setitem__(self, key, value):