Skip to content

Commit 0a5a843

Browse files
author
Josef-MrBeam
committed
https://github.com/mrbeam/MrBeamPlugin/pull/1491#discussion_r876909720
1 parent 88dd87e commit 0a5a843

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

octoprint_mrbeam/analytics/usage_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ def _repair_backup_usage_data(self):
398398
with open(self._backup_file, "r") as stream:
399399
data = yaml.load(stream)
400400
if self._validate_data(data):
401+
#checks if the version is saved in unicode and converts it into a string see SW-1269
401402
if isinstance(data["version"], unicode):
402403
data["version"] = unicodedata.normalize('NFKD', data["version"]).encode('ascii', 'ignore')
403404
data["restored"] = (

0 commit comments

Comments
 (0)