mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Add exception handling during metadata processing
This commit is contained in:
parent
02b1040264
commit
62d4bb05d4
@ -593,9 +593,13 @@ def retrieve_dream_command(opt,command,completer):
|
|||||||
except OSError:
|
except OSError:
|
||||||
print(f'## {path}: file could not be read')
|
print(f'## {path}: file could not be read')
|
||||||
continue
|
continue
|
||||||
except (KeyError, AttributeError):
|
except (KeyError, AttributeError, IndexError):
|
||||||
print(f'## {path}: file has no metadata')
|
print(f'## {path}: file has no metadata')
|
||||||
continue
|
continue
|
||||||
|
except:
|
||||||
|
print(f'## {path}: file could not be processed')
|
||||||
|
continue
|
||||||
|
|
||||||
commands.append(f'# {path}')
|
commands.append(f'# {path}')
|
||||||
commands.append(cmd)
|
commands.append(cmd)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user