Commit 3aae002b authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fix stuck processing on phonon processing error.

parent 76ea2752
...@@ -457,10 +457,13 @@ class Calc(Proc): ...@@ -457,10 +457,13 @@ class Calc(Proc):
self._entry_metadata.dft.update_group_hash() self._entry_metadata.dft.update_group_hash()
self._entry_metadata.encyclopedia.status = EncyclopediaMetadata.status.type.success self._entry_metadata.encyclopedia.status = EncyclopediaMetadata.status.type.success
except Exception as e: except Exception as e:
logger.error("Could not retrieve method information for phonon calculation.", exception=e) logger.error("Could not retrieve method information for phonon calculation.", exc_info=e)
if self._entry_metadata.encyclopedia is None: try:
self._entry_metadata.encyclopedia = EncyclopediaMetadata() if self._entry_metadata.encyclopedia is None:
self._entry_metadata.encyclopedia.status = EncyclopediaMetadata.status.type.failure self._entry_metadata.encyclopedia = EncyclopediaMetadata()
self._entry_metadata.encyclopedia.status = EncyclopediaMetadata.status.type.failure
except Exception as e:
logger.error("Could set encyclopedia status.", exc_info=e)
finally: finally:
# persist the calc metadata # persist the calc metadata
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment