Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
antonko committed Mar 30, 2024
1 parent 4535aca commit d13127a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/src/services/job_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import arq.jobs
from arq import create_pool
from arq.connections import RedisSettings
from arq.jobs import DeserializationError
from arq.jobs import Job as ArqJob
from core.cache import LRUCache
from core.config import Settings, get_app_settings
Expand Down Expand Up @@ -64,8 +65,8 @@ async def fetch_job_info(
redis_raw = await redis.get(complete_key)
try:
job_result: arq.jobs.JobResult = arq.jobs.deserialize_result(redis_raw)
except Exception as e:
self.logger.error(f"Error deserializing job result: {e}")
except DeserializationError:
self.logger.exception("Error deserializing job result")
return None

job_schema = Job(
Expand Down

0 comments on commit d13127a

Please sign in to comment.