We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7735089 commit 9d76b44Copy full SHA for 9d76b44
1 file changed
src/apify/_actor.py
@@ -216,16 +216,13 @@ async def __aexit__(
216
if self._is_exiting:
217
return
218
219
- if exc_value:
220
- self.exit_code = ActorExitCodes.ERROR_USER_FUNCTION_THREW.value
221
-
222
self._raise_if_not_initialized()
223
224
if exc_value and not is_running_in_ipython():
225
# In IPython, we don't run `sys.exit()` during Actor exits,
226
# so the exception traceback will be printed on its own
227
self.log.exception('Actor failed with an exception', exc_info=exc_value)
228
- self.exit_value = ActorExitCodes.ERROR_USER_FUNCTION_THREW.value
+ self.exit_code = ActorExitCodes.ERROR_USER_FUNCTION_THREW.value
229
230
self._is_exiting = True
231
self.log.info('Exiting Actor', extra={'exit_code': self.exit_code})
0 commit comments