Mercurial > p > roundup > code
diff roundup/roundupdb.py @ 1404:f7d3421ce7e7
Handle situation when timezone is not set
| author | Andrey Lebedev <kedder@users.sourceforge.net> |
|---|---|
| date | Mon, 27 Jan 2003 17:02:46 +0000 |
| parents | 27586da5557c |
| children | 0634f815b90c |
line wrap: on
line diff
--- a/roundup/roundupdb.py Mon Jan 27 16:40:37 2003 +0000 +++ b/roundup/roundupdb.py Mon Jan 27 17:02:46 2003 +0000 @@ -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 @@ 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 :)
