Skip to content

Commit

Permalink
handle when quick_replies is None
Browse files Browse the repository at this point in the history
  • Loading branch information
hollal committed Aug 30, 2017
1 parent a6c5798 commit 0912ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fbmq/payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Message(object):
def __init__(self, text=None, attachment=None, quick_replies=None, metadata=None):
if text is not None and attachment is not None:
raise ValueError('Please set only one parameter "text" or "attachment"')
if not isinstance(quick_replies, list):
if not isinstance(quick_replies, list) and quick_replies is not None:
raise ValueError('quick_replies type must be "list"')

self.text = text
Expand Down

0 comments on commit 0912ca8

Please sign in to comment.