Browse Source

Delete key only if existent

pull/184/head
Oliverpool 9 years ago
parent
commit
df741a3d95
  1. 4
      patacrep/songbook/__main__.py

4
patacrep/songbook/__main__.py

@ -172,10 +172,10 @@ def main():
)
for path in songbook['book']['datadir']
]
del songbook['book']['datadir']
# Default value
datadirs.append(os.path.dirname(os.path.abspath(songbook_path)))
del songbook['book']['datadir']
songbook['_datadir'] = datadirs
songbook['_cache'] = options.cache[0]

Loading…
Cancel
Save