Skip to content

Commit

Permalink
python3.5 :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Feb 12, 2025
1 parent f197b5e commit 4ba6c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metabox/metabox/tools/session_corruptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@


def corrupt(path):
with gzip.open(str(path)) as f:
with gzip.open(str(path), "rb") as f:
session = json.load(f)
session["session"]["desired_job_list"].append(
"@ invalid id - intentionally corrupted session"
)
with gzip.open(str(path), "wt") as f:
with gzip.open(str(path), "wb") as f:
json.dump(session, f)


Expand Down

0 comments on commit 4ba6c5f

Please sign in to comment.