]> git.phdru.name Git - bookmarks_db.git/commitdiff
Timout can be float.
authorOleg Broytman <phd@phdru.name>
Tue, 18 Dec 2007 18:37:14 +0000 (18:37 +0000)
committerOleg Broytman <phd@phdru.name>
Tue, 18 Dec 2007 18:37:14 +0000 (18:37 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@117 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Robots/bkmk_rsimple.py

index 57006da577ccf581317e80e2e2c94dd6a082fd7c..27c7dc3625c5e00554f55538bcf5c77a806d1ecd 100644 (file)
@@ -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