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

Commit da5f94e

Browse files
author
bweigel
committed
fix bug where Intent was None
1 parent d2fb9df commit da5f94e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lawip/alexa_skill_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self, locale: str, timestamp: str,
3838
self._timestamp = timestamp
3939
self._request_id = requestId
4040
self._type = type
41-
self._intent = AlexaIntent(**intent)
41+
self._intent = AlexaIntent(**intent) if isinstance(intent, dict) else None
4242
self._reason = reason
4343

4444
@classmethod

0 commit comments

Comments
 (0)