Skip to content

Commit

Permalink
💄 _create_client update
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Jul 7, 2024
1 parent c883341 commit 6dddf04
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion findmyorder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@ def _create_client(self, **kwargs):
"""
# library = kwargs.get("parser_library", "standard")
library = kwargs.get("parser_library") or kwargs.get("library") or "standard"
library = (
kwargs.get("library")
or kwargs.get("platform")
or kwargs.get("protocol")
or kwargs.get("parser_library")
or "standard"
)
cls = self.client_classes.get((f"{library.capitalize()}Handler"))
return None if cls is None else cls(**kwargs)

Expand Down

0 comments on commit 6dddf04

Please sign in to comment.