Fix py3 compat issue in irish times

This commit is contained in:
Kovid Goyal 2021-03-28 22:28:42 +05:30
parent a80357301c
commit 176ad16b04
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -70,7 +70,7 @@ class IrishTimes(BasicNewsRecipe):
raw = r.read()
data = json.loads(raw)
# print(data)
if r.code != 200 or 'user_id' not in raw:
if r.code != 200 or b'user_id' not in raw:
raise ValueError('Failed to log in check username/password')
# Set cookie