Skip to content
Snippets Groups Projects
Commit d8dd3e22 authored by Erik Reid's avatar Erik Reid
Browse files

fixed if/else chain

parent 244e753d
No related branches found
No related tags found
No related merge requests found
...@@ -196,9 +196,9 @@ class RabbitMQClient: ...@@ -196,9 +196,9 @@ class RabbitMQClient:
self.exchange_type = exchange_type self.exchange_type = exchange_type
self.routing_keys: Sequence[str] = [] # for mypy self.routing_keys: Sequence[str] = [] # for mypy
if routing_keys is not None: if routing_keys is None:
self.routing_keys = [] self.routing_keys = []
if isinstance(routing_keys, str): elif isinstance(routing_keys, str):
self.routing_keys = [routing_keys] self.routing_keys = [routing_keys]
elif isinstance(routing_keys, Sequence): elif isinstance(routing_keys, Sequence):
self.routing_keys = routing_keys self.routing_keys = routing_keys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment