do no exit if a user changed or does not provide the correct host, client_id, client_key, login, pass
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
VERSION = (1, 2, 0) # PEP 386
|
VERSION = (1, 2, 1) # PEP 386
|
||||||
__version__ = ".".join([str(x) for x in VERSION])
|
__version__ = ".".join([str(x) for x in VERSION])
|
||||||
|
|||||||
@@ -97,10 +97,13 @@ class Wallabag(object):
|
|||||||
:param responses: the json response
|
:param responses: the json response
|
||||||
:return the json data without 'root' node
|
:return the json data without 'root' node
|
||||||
"""
|
"""
|
||||||
if responses.status != 200:
|
|
||||||
raise HttpProcessingError(code=responses.status,
|
|
||||||
message=await responses.json())
|
|
||||||
json_data = {}
|
json_data = {}
|
||||||
|
if responses.status != 200:
|
||||||
|
err_msg = HttpProcessingError(code=responses.status,
|
||||||
|
message=await responses.json())
|
||||||
|
logging.error("Wallabag: aiohttp error {err_msg}".format(
|
||||||
|
err_msg=err_msg))
|
||||||
|
else:
|
||||||
try:
|
try:
|
||||||
json_data = responses.json()
|
json_data = responses.json()
|
||||||
except ClientResponseError as e:
|
except ClientResponseError as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user