diff --git a/geomagio/Util.py b/geomagio/Util.py
index e6b74ed980d12473a1af881776e3f8dec40334b2..69e6659ec7726d0095e43b666907f8ab3d82881f 100644
--- a/geomagio/Util.py
+++ b/geomagio/Util.py
@@ -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.