summaryrefslogtreecommitdiff
path: root/python/fileaccessor.py
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2026-04-15 11:21:40 -0400
committerJosh Ferrell <josh@vector35.com>2026-04-15 11:21:44 -0400
commitb4ccb82ea76b98457d9dc59424632ca412511ed4 (patch)
tree2eb4d7875181cee7b05413fa6dcdaea3a1d95981 /python/fileaccessor.py
parentc08cf3f1eaa73a5171c27044100479998104d58a (diff)
[Python API] Replace bare "except:" with "except Exception:" to fix signal propagation
Diffstat (limited to 'python/fileaccessor.py')
-rw-r--r--python/fileaccessor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/fileaccessor.py b/python/fileaccessor.py
index b35a362c..a910c8c0 100644
--- a/python/fileaccessor.py
+++ b/python/fileaccessor.py
@@ -49,7 +49,7 @@ class FileAccessor:
def _get_length(self, ctxt):
try:
return self.get_length()
- except:
+ except Exception:
log_error_for_exception("Unhandled Python exception in FileAccessor._get_length")
return 0
@@ -62,7 +62,7 @@ class FileAccessor:
data = data[0:length]
ctypes.memmove(dest, data, len(data))
return len(data)
- except:
+ except Exception:
log_error_for_exception("Unhandled Python exception in FileAccessor._read")
return 0
@@ -71,7 +71,7 @@ class FileAccessor:
data = ctypes.create_string_buffer(length)
ctypes.memmove(data, src, length)
return self.write(offset, data.raw)
- except:
+ except Exception:
log_error_for_exception("Unhandled Python exception in FileAccessor._write")
return 0