Code

Handle situation when timezone is not set
authorkedder <kedder@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 27 Jan 2003 17:02:46 +0000 (17:02 +0000)
committerkedder <kedder@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 27 Jan 2003 17:02:46 +0000 (17:02 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1482 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/roundupdb.py

index 162452a901cf13d7ebbdcf29b517404fec5287bf..b75b6115f357ad3546ed90bef40266511368386a 100644 (file)
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: roundupdb.py,v 1.79 2003-01-27 16:32:48 kedder Exp $
+# $Id: roundupdb.py,v 1.80 2003-01-27 17:02:46 kedder Exp $
 
 __doc__ = """
 Extending hyperdb with types specific to issue-tracking.
@@ -62,7 +62,7 @@ class Database:
         userid = self.getuid()
         try:
             timezone = int(self.user.get(userid, 'timezone'))
-        except (KeyError, ValueError):
+        except (KeyError, ValueError, TypeError):
             # If there is no class 'user' or current user doesn't have timezone 
             # property or that property is not numeric assume he/she lives in 
             # Greenwich :)