Update exporter.py to raise errors on export failure (#3951)

This commit is contained in:
Glenn Jocher
2023-07-25 18:41:04 +02:00
committed by GitHub
parent d0a875e8e6
commit 1a8767051d
3 changed files with 8 additions and 8 deletions

View File

@ -116,7 +116,7 @@ def try_export(inner_func):
return f, model
except Exception as e:
LOGGER.info(f'{prefix} export failure ❌ {dt.t:.1f}s: {e}')
return None, None
raise e
return outer_func