Add exception handling during metadata processing

This commit is contained in:
ArDiouscuros 2022-10-08 13:42:30 +02:00
parent 02b1040264
commit 62d4bb05d4

View File

@ -593,9 +593,13 @@ def retrieve_dream_command(opt,command,completer):
except OSError:
print(f'## {path}: file could not be read')
continue
except (KeyError, AttributeError):
except (KeyError, AttributeError, IndexError):
print(f'## {path}: file has no metadata')
continue
except:
print(f'## {path}: file could not be processed')
continue
commands.append(f'# {path}')
commands.append(cmd)