summaryrefslogtreecommitdiff
path: root/src/ipcam_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcam_server.py')
-rwxr-xr-xsrc/ipcam_server.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ipcam_server.py b/src/ipcam_server.py
index 9fc11c6..306f1c5 100755
--- a/src/ipcam_server.py
+++ b/src/ipcam_server.py
@@ -176,9 +176,10 @@ class IPCamWebServer(http.HTTPServer):
db.set_timestamp(camera, TimeFilterType.MOTION, time)
return self.ok()
- except ValueError as e:
+ except camutil.DVRScanInvalidTimecodes as e:
+ db.add_motion_failure(camera, filename, str(e))
db.set_timestamp(camera, TimeFilterType.MOTION, time)
- raise e
+ return self.ok('invalid timecodes')
async def submit_motion_failure(self, req: http.Request):
camera = int(req.match_info['name'])