check for bookmark first
This commit is contained in:
parent
7e748a1306
commit
cd74538adf
@ -108,6 +108,7 @@ class BookmarkManager:
|
|||||||
else:
|
else:
|
||||||
path = os.path.join(common.CONFIG_DIR, "mozilla", "bookmarks.save")
|
path = os.path.join(common.CONFIG_DIR, "mozilla", "bookmarks.save")
|
||||||
|
|
||||||
|
if os.path.exists(path):
|
||||||
try:
|
try:
|
||||||
bookmark_file = open(path, "rb")
|
bookmark_file = open(path, "rb")
|
||||||
bookmarks = cPickle.load(bookmark_file)
|
bookmarks = cPickle.load(bookmark_file)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user