mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-10-30 05:57:12 +00:00
fix: only log if it got a job
This commit is contained in:
@@ -44,7 +44,10 @@ async def get_queued_job():
|
||||
)
|
||||
result = await session.execute(stmt)
|
||||
job = result.scalars().first()
|
||||
LOG.info(f"Got queued job: {job}")
|
||||
|
||||
if job:
|
||||
LOG.info(f"Got queued job: {job}")
|
||||
|
||||
return job
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user