Skip to content

Commit

Permalink
ruff: SIM910
Browse files Browse the repository at this point in the history
  • Loading branch information
jvansanten committed Nov 11, 2024
1 parent 4eb4ab1 commit 6158933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ampel/abstract/AbsEventUnit.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def proceed(self, event_hdlr: EventHandler) -> Any:
@classmethod
def new(cls, templates: str | Sequence[str], **kwargs) -> Self:
""" To use with jupyter when templating is wished for """
with get_logger(kwargs['context'].config, kwargs.get('log_profile', None)) as logger:
with get_logger(kwargs['context'].config, kwargs.get('log_profile')) as logger:
return cls(**apply_templates(kwargs['context'], templates, kwargs, logger))


Expand Down

0 comments on commit 6158933

Please sign in to comment.