api: set event_types to empty list if not supplied in register.

Previously, if you didn't specify a list of `event_types` in either `register` or `call_on_each_event`, you'd get an exception due to the invalid event format.

This fixes #86.
This commit is contained in:
Ahmad Jarara 2017-08-22 19:33:10 -04:00 committed by Tim Abbott
parent 83bfcb6535
commit 409bb58742

View file

@ -616,6 +616,9 @@ class Client(object):
if narrow is None:
narrow = []
if event_types is None:
event_types = []
request = dict(
event_types=event_types,
narrow=narrow,