mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +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')
|
||||
|
||||
if completion_dir != '':
|
||||
try:
|
||||
os.makedirs(completion_dir)
|
||||
except OSError:
|
||||
if not os.path.isdir(completion_dir):
|
||||
raise
|
||||
os.makedirs(completion_dir, exist_ok=True)
|
||||
|
||||
nobasicfields = opts.noFields # Do not complete for album/track fields
|
||||
extravalues = opts.extravalues # e.g., Also complete artists names
|
||||
|
|
|
|||
Loading…
Reference in a new issue