mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix py3 compat issue in irish times
This commit is contained in:
parent
a80357301c
commit
176ad16b04
@ -70,7 +70,7 @@ class IrishTimes(BasicNewsRecipe):
|
|||||||
raw = r.read()
|
raw = r.read()
|
||||||
data = json.loads(raw)
|
data = json.loads(raw)
|
||||||
# print(data)
|
# 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')
|
raise ValueError('Failed to log in check username/password')
|
||||||
|
|
||||||
# Set cookie
|
# Set cookie
|
||||||
|
Loading…
x
Reference in New Issue
Block a user