Skip to content
Snippets Groups Projects

Hotfix for Windows OS support

1 file
+ 1
3
Compare changes
  • Side-by-side
  • Inline
+ 1
3
@@ -279,6 +279,7 @@ def write_state_file(filename, data, directory=None, encoder=None):
print(
f"The fcntl module is not supported in Windows. Reading/writing state files will not work: {e}"
)
pass
except IOError as e:
print(f"Error locking or writing to file: {e}")
raise
@@ -290,9 +291,6 @@ def write_state_file(filename, data, directory=None, encoder=None):
raise
write_state_file("testjunkfile", "dataaaaa", "/home/bgeels/")
def read_state_file(filename, directory=None, decoder=None):
"""
Reads data from a state file in a thread-safe manner.
Loading