From: Oleg Broytman Date: Thu, 11 Oct 2007 10:11:15 +0000 (+0000) Subject: Fixed a minor bug. X-Git-Tag: v4.5.3~290 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=29b619793aaf018cb2f6c7feb6d7c5236e319c7e;p=bookmarks_db.git Fixed a minor bug. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@86 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Writers/bkmk_wflad.py b/Writers/bkmk_wflad.py index 0ba7075..ace4e73 100644 --- a/Writers/bkmk_wflad.py +++ b/Writers/bkmk_wflad.py @@ -1,7 +1,7 @@ """ Dump bookmarks db to a more readable FLAD after check_urls - Written by BroytMann, Apr 2000 - Sep 2007. Copyright (C) 2000-2007 PhiloSoft Design + Written by BroytMann. Copyright (C) 2000-2007 PhiloSoft Design. """ @@ -12,7 +12,7 @@ from bkmk_objects import Writer def strftime(s): try: return time.strftime("%a %d %b %Y %T", time.localtime(int(s))) - except ValueError: # s is already formatted + except (TypeError, ValueError): # s is None or is already formatted return s