Skip to content

Commit 8147b7c

Browse files
committed
comment
1 parent 5a1ba95 commit 8147b7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/apify/_actor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ def __init__(
8282
self._call_exit = self._get_default_call_exit() if call_exit is None else call_exit
8383
self._is_exiting = False
8484

85-
self._configure_logging = configure_logging
8685
self._configuration = configuration or Configuration.get_global_configuration()
86+
self._configure_logging = configure_logging
8787
self._apify_client = self.new_client()
8888

8989
# Create an instance of the cloud storage client, the local storage client is obtained
@@ -1151,6 +1151,7 @@ def _get_default_call_exit(self) -> bool:
11511151
self.log.debug('Actor is running in Scrapy, setting default call exit to False.')
11521152
return False
11531153

1154+
# Scrapy setting env var alone may not be sufficient; verify by attempting to import Scrapy.
11541155
with suppress(ImportError):
11551156
import scrapy # noqa: F401
11561157

0 commit comments

Comments
 (0)