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:
267267 else :
268268 try :
269269 # Set implicit default Apify configuration, unless configuration was already set.
270- service_locator .set_configuration (self . configuration )
270+ service_locator .set_configuration (Configuration () )
271271 except ServiceConflictError :
272272 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. '
274274 'Using the existing configuration.'
275275 )
276276 # Use the configuration from the service locator
@@ -622,10 +622,10 @@ async def set_value(
622622
623623 def get_charging_manager (self ) -> ChargingManager :
624624 """Retrieve the charging manager to access granular pricing information."""
625+ self ._raise_if_not_initialized ()
625626 return self ._get_charging_manager_implementation ()
626627
627628 def _get_charging_manager_implementation (self ) -> ChargingManagerImplementation :
628- self ._raise_if_not_initialized ()
629629 if not self ._charging_manager :
630630 self ._charging_manager = ChargingManagerImplementation (self .config , self .apify_client )
631631 return self ._charging_manager
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- import traceback
43from datetime import datetime , timedelta
54from decimal import Decimal
65from logging import getLogger
@@ -419,7 +418,6 @@ def disable_browser_sandbox_on_platform(self) -> Self:
419418 """
420419 if self .is_at_home and not self .disable_browser_sandbox :
421420 self .disable_browser_sandbox = True
422- logger .info ('Stack trace:\n %s' , '' .join (traceback .format_stack ()))
423421 logger .warning ('Actor is running on the Apify platform, `disable_browser_sandbox` was changed to True.' )
424422 return self
425423
You can’t perform that action at this time.
0 commit comments