Skip to content

Commit 2ca5464

Browse files
authored
Fix logging during handling of ValueError in parsing of calculation output (#29)
1 parent 7a12a31 commit 2ca5464

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/aiida_pythonjob/parsers/pythonjob.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,7 @@ def parse(self, **kwargs):
7878
except OSError:
7979
return self.exit_codes.ERROR_READING_OUTPUT_FILE
8080
except ValueError as exception:
81-
self.logger.error(exception)
81+
self.logger.error(
82+
f"An error occurred when attempting to parse the output of the calculation: ValueError: {exception!s}"
83+
)
8284
return self.exit_codes.ERROR_INVALID_OUTPUT

0 commit comments

Comments
 (0)