[kupfer: 17/18] firefox: check is bookmarks file exists before loading it



commit 68dfd162193f8d601c52177a6680f2e7302cb4f6
Author: Karol BÄdkowski <karol bedkowski gmail com>
Date:   Sat Dec 22 16:06:09 2012 +0100

    firefox: check is bookmarks file exists before loading it

 kupfer/plugin/firefox_support.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/firefox_support.py b/kupfer/plugin/firefox_support.py
index df986e4..7552cb8 100644
--- a/kupfer/plugin/firefox_support.py
+++ b/kupfer/plugin/firefox_support.py
@@ -152,6 +152,8 @@ def get_bookmarks(bookmarks_file):
 	# construct and configure the parser
 	if not bookmarks_file:
 		return []
+	if not os.path.isfile(bookmarks_file):
+		return []
 	parser = BookmarksParser()
 
 	# initiate the parse; this will submit requests to delicious



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]