File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -267,10 +267,10 @@ async def init(self) -> None:
267
267
else :
268
268
try :
269
269
# Set implicit default Apify configuration, unless configuration was already set.
270
- service_locator .set_configuration (self . configuration )
270
+ service_locator .set_configuration (Configuration () )
271
271
except ServiceConflictError :
272
272
self .log .info (
273
- 'Configuration in service locator was set explicitly before Actor. '
273
+ 'Configuration in service locator was set explicitly before Actor.init was called. '
274
274
'Using the existing configuration.'
275
275
)
276
276
# Use the configuration from the service locator
@@ -622,10 +622,10 @@ async def set_value(
622
622
623
623
def get_charging_manager (self ) -> ChargingManager :
624
624
"""Retrieve the charging manager to access granular pricing information."""
625
+ self ._raise_if_not_initialized ()
625
626
return self ._get_charging_manager_implementation ()
626
627
627
628
def _get_charging_manager_implementation (self ) -> ChargingManagerImplementation :
628
- self ._raise_if_not_initialized ()
629
629
if not self ._charging_manager :
630
630
self ._charging_manager = ChargingManagerImplementation (self .config , self .apify_client )
631
631
return self ._charging_manager
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
- import traceback
4
3
from datetime import datetime , timedelta
5
4
from decimal import Decimal
6
5
from logging import getLogger
@@ -419,7 +418,6 @@ def disable_browser_sandbox_on_platform(self) -> Self:
419
418
"""
420
419
if self .is_at_home and not self .disable_browser_sandbox :
421
420
self .disable_browser_sandbox = True
422
- logger .info ('Stack trace:\n %s' , '' .join (traceback .format_stack ()))
423
421
logger .warning ('Actor is running on the Apify platform, `disable_browser_sandbox` was changed to True.' )
424
422
return self
425
423
You can’t perform that action at this time.
0 commit comments