zulip / python-zulip-api

Python library for the Zulip API.
https://zulip.com/api/
Apache License 2.0
350 stars 356 forks source link

Changes to make rss bot working with zulip 3.3 and Debian 10.7 : #640

Closed fulljackz closed 3 years ago

fulljackz commented 3 years ago

Signed-off-by: Manu LN manu+github@lacavernedemanu.fr

Before changes, while trying to get rss infos in RSS stream the script output was

Traceback (most recent call last):
  File ".local/share/zulip/integrations/rss/rss-bot", line 190, in <module>
    entry_hash = compute_entry_hash(entry)  # type: str
  File ".local/share/zulip/integrations/rss/rss-bot", line 131, in compute_entry_hash
    return hashlib.md5(entry_id + str(entry_time)).hexdigest()
TypeError: Unicode-objects must be encoded before hashing
timabbott commented 3 years ago

Merged, thanks for the PR @fulljackz!