diff --git a/src/util/helper.py b/src/util/helper.py index 18bf4a69..5f068923 100644 --- a/src/util/helper.py +++ b/src/util/helper.py @@ -12,7 +12,7 @@ import gevent from Config import config -def atomicWrite(dest, content, mode="w"): +def atomicWrite(dest, content, mode="wb"): try: with open(dest + "-tmpnew", mode) as f: f.write(content)