File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ def __init__(
82
82
self ._call_exit = self ._get_default_call_exit () if call_exit is None else call_exit
83
83
self ._is_exiting = False
84
84
85
- self ._configure_logging = configure_logging
86
85
self ._configuration = configuration or Configuration .get_global_configuration ()
86
+ self ._configure_logging = configure_logging
87
87
self ._apify_client = self .new_client ()
88
88
89
89
# 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:
1151
1151
self .log .debug ('Actor is running in Scrapy, setting default call exit to False.' )
1152
1152
return False
1153
1153
1154
+ # Scrapy setting env var alone may not be sufficient; verify by attempting to import Scrapy.
1154
1155
with suppress (ImportError ):
1155
1156
import scrapy # noqa: F401
1156
1157
You can’t perform that action at this time.
0 commit comments