Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 83e51c1

Browse files
author
bweigel
committed
bugfix
1 parent 7e101c8 commit 83e51c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lawip/alexa_skill_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ def parse_intents(slots: Dict[str, Dict[str, str]]) -> Dict[str, IntentSlot]:
1717

1818
class AlexaIntent:
1919
def __init__(self, name: str,
20-
slots: Dict, **kwargs):
20+
**kwargs):
2121
self._name = name
22-
self._slots = parse_intents(slots)
22+
self._slots = parse_intents(kwargs.pop("slots")) if "slots" in kwargs else None
2323
if len(kwargs) > 0:
2424
LOG.warning(f"Got unexpected kwargs in {self.__class__} => {kwargs}")
2525

0 commit comments

Comments
 (0)