]> git.gir.st - subscriptionfeed.git/commit
return bytes (not str) from fetch_xml()
authorgirst <tobi@isticktoit.net>
Fri, 17 Jul 2020 11:34:10 +0000 (13:34 +0200)
committergirst <tobi@isticktoit.net>
Fri, 17 Jul 2020 11:34:10 +0000 (13:34 +0200)
commit093009476ab3fe5ecf0aa428fdcca7b608538cc6
treea93c331d1b115ae41a54bcf2744be4f9919319e9
parente4aca04cbb46c794fe4658936a623498a9d870d0
return bytes (not str) from fetch_xml()

broke pull-subs logging when it choked on an unrelated error
Traceback (most recent call last):
  File "/opt/yt/app/common/utils.py", line 151, in <module>
    pull_subscriptions(verbosity, force, limit)
  File "/opt/yt/app/common/utils.py", line 44, in pull_subscriptions
    pull_feed(feed_id, feed_type, conn, verbose)
  File "/opt/yt/app/common/utils.py", line 67, in pull_feed
    f.write(xmlfeed + b"\n")
TypeError: must be str, not bytes
app/common/common.py
Imprint / Impressum