diff --git a/source/addonHandler/__init__.py b/source/addonHandler/__init__.py index 7f2f6f6dd64..75da59af505 100644 --- a/source/addonHandler/__init__.py +++ b/source/addonHandler/__init__.py @@ -72,7 +72,7 @@ def saveState(): try: # #9038: Python 3 requires binary format when working with pickles. with open(statePath, "wb") as f: - pickle.dump(state, f) + pickle.dump(state, f, protocol=0) except: log.debugWarning("Error saving state", exc_info=True) diff --git a/source/updateCheck.py b/source/updateCheck.py index ec4b033f309..8cf45e20afa 100644 --- a/source/updateCheck.py +++ b/source/updateCheck.py @@ -744,7 +744,7 @@ def saveState(): try: # #9038: Python 3 requires binary format when working with pickles. with open(_stateFilename, "wb") as f: - pickle.dump(state, f) + pickle.dump(state, f, protocol=0) except: log.debugWarning("Error saving state", exc_info=True)