From acd718eb6d28335be2c805236b238c27d5d8d7e2 Mon Sep 17 00:00:00 2001 From: kedder Date: Mon, 27 Jan 2003 17:02:46 +0000 Subject: [PATCH] Handle situation when timezone is not set git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1482 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/roundupdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py index 162452a..b75b611 100644 --- a/roundup/roundupdb.py +++ b/roundup/roundupdb.py @@ -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 :) -- 2.39.5