Skip to content

Commit 83e8eb9

Browse files
author
Andrey Lebedev
committed
Handle situation when timezone is not set
1 parent 954849e commit 83e8eb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/roundupdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: roundupdb.py,v 1.79 2003-01-27 16:32:48 kedder Exp $
18+
# $Id: roundupdb.py,v 1.80 2003-01-27 17:02:46 kedder Exp $
1919

2020
__doc__ = """
2121
Extending hyperdb with types specific to issue-tracking.
@@ -62,7 +62,7 @@ def getUserTimezone(self):
6262
userid = self.getuid()
6363
try:
6464
timezone = int(self.user.get(userid, 'timezone'))
65-
except (KeyError, ValueError):
65+
except (KeyError, ValueError, TypeError):
6666
# If there is no class 'user' or current user doesn't have timezone
6767
# property or that property is not numeric assume he/she lives in
6868
# Greenwich :)

0 commit comments

Comments
 (0)