Don't crash if .gtk-bookmarks doesn't exist yet
This commit is contained in:
parent
7727fa6e8a
commit
daed7b863b
@ -225,7 +225,9 @@ class pluginclass( object ):
|
|||||||
|
|
||||||
def do_gtk_bookmarks( self ):
|
def do_gtk_bookmarks( self ):
|
||||||
if self.showGTKBookmarks:
|
if self.showGTKBookmarks:
|
||||||
bookmarks = {}
|
if not os.path.exists(os.path.expanduser('~/.gtk-bookmarks')):
|
||||||
|
return
|
||||||
|
bookmarks = {}
|
||||||
with open(os.path.expanduser('~/.gtk-bookmarks'), 'r') as f:
|
with open(os.path.expanduser('~/.gtk-bookmarks'), 'r') as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
#line = line.replace('file://', '')
|
#line = line.replace('file://', '')
|
||||||
|
Loading…
Reference in New Issue
Block a user