Skip to content

Commit 1dee23d

Browse files
authored
Update __init__.py
like expexted same effect but more tidy
1 parent 5b6f4a5 commit 1dee23d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

urbackup_api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ def _get_json(self, action, params = {}):
9292
logger.error("API call failed. Retrying...")
9393

9494
data = response.read();
95-
data = data.decode('utf-8','ignore').encode('utf-8')
95+
9696
response.close()
9797

98-
return json.loads(data.decode("utf-8"))
98+
return json.loads(data.decode("utf-8","ignore"))
9999

100100
def _download_file(self, action, outputfn, params):
101101

0 commit comments

Comments
 (0)