You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Job class the get_errormsg results depends from check method, but it should be the other way around, if no error is present then the check returns True. For SingleJob.check the default return value is True resulting that by default get_errormsg returns None insted of self._error_msg.
I report the piece of code:
#classJob@abstractmethoddefcheck(self) ->bool:
"""Check if the execution of this instance was successful."""defget_errormsg(self) ->Optional[str]:
"""Tries to get an error message for a failed job. This method returns ``None`` for successful jobs."""ifself.check():
returnNonereturn (
self._error_msgifself._error_msgelse"Could not determine error message. Please check the output manually."
)
The text was updated successfully, but these errors were encountered:
In the
Job
class the get_errormsg results depends fromcheck
method, but it should be the other way around, if no error is present then thecheck
returnsTrue
. ForSingleJob.check
the default return value isTrue
resulting that by defaultget_errormsg
returns None insted ofself._error_msg
.I report the piece of code:
The text was updated successfully, but these errors were encountered: