Skip to content

Commit 317f45c

Browse files
author
Josef-MrBeam
committed
https://github.com/mrbeam/MrBeamPlugin/pull/1491#discussion_r876907156
1 parent 9b1e57d commit 317f45c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

octoprint_mrbeam/analytics/usage_handler.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,12 @@ def _load_usage_data(self):
388388
self._write_usage_data()
389389

390390
def _repair_backup_usage_data(self):
391+
"""
392+
repairs a broken usage backup file, where the version is saved in unicode
393+
394+
Returns:
395+
boolean: successfull
396+
"""
391397
success = False
392398
with open(self._backup_file, "r") as stream:
393399
data = yaml.load(stream)

0 commit comments

Comments
 (0)