diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2022-04-19 11:18:56 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2022-04-19 11:18:56 +0200 |
| commit | 88493c60e898d1f53604b812c9c3822ccd0908f4 (patch) | |
| tree | 82f67a97d8a02249891eb93374ae13678cbe1275 | |
| parent | 9f3b75d2eb934c3eab8a00a92078d883ca53cd5e (diff) | |
| download | geldschieberbot-88493c60e898d1f53604b812c9c3822ccd0908f4.tar.gz geldschieberbot-88493c60e898d1f53604b812c9c3822ccd0908f4.zip | |
geldschieberbot: use explicit open encoding
| -rw-r--r-- | geldschieberbot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/geldschieberbot.py b/geldschieberbot.py index edfb148..41d3b3c 100644 --- a/geldschieberbot.py +++ b/geldschieberbot.py @@ -11,7 +11,7 @@ import tanken state_file = os.environ["GSB_STATE_FILE"] if os.path.isfile(state_file): - with open(state_file, "r") as state_f: + with open(state_file, 'r', encoding='utf-8') as state_f: state = json.load(state_f) else: # Dict containing the whole state of geldschieberbot @@ -976,7 +976,7 @@ def main(): else: break - with open(state_file, "w") as f: + with open(state_file, 'w', encoding='utf-8') as f: json.dump(state, f) |
