mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
fish plugin: Simplify directory creation
This commit is contained in:
parent
40fcb25221
commit
b46b4d2045
1 changed files with 1 additions and 5 deletions
|
|
@ -105,11 +105,7 @@ class FishPlugin(BeetsPlugin):
|
||||||
completion_file_path = os.path.join(completion_dir, 'beet.fish')
|
completion_file_path = os.path.join(completion_dir, 'beet.fish')
|
||||||
|
|
||||||
if completion_dir != '':
|
if completion_dir != '':
|
||||||
try:
|
os.makedirs(completion_dir, exist_ok=True)
|
||||||
os.makedirs(completion_dir)
|
|
||||||
except OSError:
|
|
||||||
if not os.path.isdir(completion_dir):
|
|
||||||
raise
|
|
||||||
|
|
||||||
nobasicfields = opts.noFields # Do not complete for album/track fields
|
nobasicfields = opts.noFields # Do not complete for album/track fields
|
||||||
extravalues = opts.extravalues # e.g., Also complete artists names
|
extravalues = opts.extravalues # e.g., Also complete artists names
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue