X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Writers%2Fbkmk_wflad.py;h=c324194a125f38c030a924ebd0c9d34bd13a655c;hb=b47c320c38663d1a6d5def2c2d34febcd075be89;hp=0ba70751cfa7693c26f5b965f4f2ef4dbfa9d40f;hpb=5291c9e91503d288a4a50a30345d1d33ced56f32;p=bookmarks_db.git diff --git a/Writers/bkmk_wflad.py b/Writers/bkmk_wflad.py index 0ba7075..c324194 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 Broytman. 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