Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07f6057421 | ||
|
|
944e1302d8 |
2
setup.py
2
setup.py
@@ -23,6 +23,8 @@ setup(
|
|||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Programming Language :: Python :: 3.4',
|
'Programming Language :: Python :: 3.4',
|
||||||
'Programming Language :: Python :: 3.5',
|
'Programming Language :: Python :: 3.5',
|
||||||
|
'Topic :: Internet',
|
||||||
|
'Topic :: Communications',
|
||||||
],
|
],
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
VERSION = (1, 0, 0) # PEP 386
|
VERSION = (1, 1, 0) # PEP 386
|
||||||
__version__ = ".".join([str(x) for x in VERSION])
|
__version__ = ".".join([str(x) for x in VERSION])
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# coding: utf-8
|
||||||
import requests
|
import requests
|
||||||
|
from requests import HTTPError
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
__author__ = 'foxmask'
|
__author__ = 'foxmask'
|
||||||
@@ -88,7 +89,7 @@ class Wallabag(object):
|
|||||||
:return the json data without 'root' node
|
:return the json data without 'root' node
|
||||||
"""
|
"""
|
||||||
if responses.status_code != 200:
|
if responses.status_code != 200:
|
||||||
raise Exception("Wrong status code: ", responses.status_code)
|
raise HTTPError(responses.status_code, responses.json())
|
||||||
json_data = {}
|
json_data = {}
|
||||||
try:
|
try:
|
||||||
json_data = responses.json()
|
json_data = responses.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user