From: Oleg Broytman Date: Tue, 18 Dec 2007 18:37:14 +0000 (+0000) Subject: Timout can be float. X-Git-Tag: v4.5.3~259 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b07045353a028a699ac39cae6d18565c9315abbe;p=bookmarks_db.git Timout can be float. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@117 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Robots/bkmk_rsimple.py b/Robots/bkmk_rsimple.py index 57006da..27c7dc3 100644 --- a/Robots/bkmk_rsimple.py +++ b/Robots/bkmk_rsimple.py @@ -154,13 +154,11 @@ class robot_simple(Robot): except IndexError: url = "self" try: - timeout = int(refresh.split(';')[0]) + timeout = float(refresh.split(';')[0]) except (IndexError, ValueError): - timeout = None - if timeout is None: raise RedirectException("html", "Bad redirect to %s (%s)" % (url, refresh)) else: - raise RedirectException("html", "%s (%d sec)" % (url, timeout)) + raise RedirectException("html", "%s (%s sec)" % (url, timeout)) # Get favicon.ico icon = parser.icon