Commit 161d274a authored by fendouai's avatar fendouai

fix string_types

parent 2602b52b
......@@ -56,7 +56,7 @@ def ios(alert=None, badge=None, sound=None, content_available=False,
"""
payload = {}
if alert is not None:
if not isinstance(alert, (str, dict)):
if not isinstance(alert, (string_types, dict)):
raise ValueError("iOS alert must be a string or dictionary")
payload['alert'] = alert
if badge is not None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment