We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OSError
1 parent 3e34660 commit 3886c70Copy full SHA for 3886c70
subprojects/robotpy-cscore/cscore/imagewriter.py
@@ -104,7 +104,7 @@ def location(self):
104
if self._location is None:
105
# This assures that we only log when a USB memory stick is plugged in
106
if not os.path.exists(self.location_root):
107
- raise IOError(
+ raise OSError(
108
"Logging disabled, %s does not exist" % self.location_root
109
)
110
@@ -139,7 +139,7 @@ def _run(self):
139
140
last = now
141
142
- except IOError as e:
+ except OSError as e:
143
logger.error("Error logging images: %s", e)
144
145
logger.warn("Storage thread exited")
0 commit comments