Skip to content

Commit

Permalink
Fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tskisner committed Apr 25, 2024
1 parent fcca81b commit d9b801b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions socs/agents/rtsp_camera/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from datetime import datetime, timedelta, timezone

import cv2
import imutils
import ocs
import txaio
from ocs import ocs_agent, site_config
Expand All @@ -17,7 +16,7 @@

from ...common.camera import (CircularMediaBuffer, FakeCamera, MotionDetector,
image_read_callback, image_write_callback,
video_read_callback, video_write_callback)
video_write_callback)


class RTSPCameraAgent:
Expand Down Expand Up @@ -162,7 +161,7 @@ def _dt_convert(timestr):
except ValueError:
tm = datetime.strptime(tstr, "%Y-%m-%dT%H:%M:%S")
msg = f"Motion time '{timestr}' is not "
msg += f"timezone-aware. Assuming UTC."
msg += "timezone-aware. Assuming UTC."
self.log.warning(msg)
tm = tm.replace(tzinfo=timezone.utc)
return tm
Expand Down

0 comments on commit d9b801b

Please sign in to comment.