Fixed placement

This commit is contained in:
bskjon 2024-11-07 00:49:59 +01:00
parent 717350e23c
commit 9ecdcd88fe

View File

@ -166,12 +166,12 @@ class EventsPullerThread(threading.Thread):
else: else:
logging.debug("A successful connection has been made!") logging.debug("A successful connection has been made!")
event: MediaEvent | None = None
try: try:
rows = self.getEventsAvailable(connection=self.connection) rows = self.getEventsAvailable(connection=self.connection)
if (len(rows) == 0): if (len(rows) == 0):
logger.debug("No events found..") logger.debug("No events found..")
for row in rows: for row in rows:
event: MediaEvent | None = None
if (row is not None): if (row is not None):
try: try:
referenceId = row["referenceId"] referenceId = row["referenceId"]