Skip to content

Commit 5b6f4a5

Browse files
authored
Update __init__.py
There's a seldom issue I encountered with a 32bit Server 2008 in which the Servername isn't formatted nicely (also not in the Webui) which brings the wrapper to a halt. Please review the adittion that solved the issue for me. This is my first pull request whatsoever so maybe I have overseen something else in the overall procedure...
1 parent 4d7b948 commit 5b6f4a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

urbackup_api/__init__.py

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

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

9898
return json.loads(data.decode("utf-8"))

0 commit comments

Comments
 (0)