Skip to content

Commit 02e1141

Browse files
author
Alex
committed
Fix wrong file descriptor
1 parent 78864ff commit 02e1141

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shotgun_api3/lib/mockgun/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def _read_file(cls, path):
155155

156156
@classmethod
157157
def _write_file(cls, data, path):
158-
fh = open(path, "rb")
158+
fh = open(path, "wb")
159159
try:
160160
return pickle.dump(data, fh, protocol=_HIGHEST_24_PICKLE_PROTOCOL)
161161
finally:

0 commit comments

Comments
 (0)