Commit fff91b84 authored by Yábir García's avatar Yábir García

Fix log error

parent 215cf06e
......@@ -40,11 +40,12 @@ def store_media(manager: MediaManager, ident: str, description: str, focus:Tuple
description = description,
)
@huey.task()
@huey.task(retries=3, retry_delay=5)
def atach_media_to_status(status, media_id):
try:
m = Media.get(Media.media_name==media_id)
m.status = status
m.save()
except Media.DoesNotExist:
logger.error(f"Media id not found {image} for {status.id}")
\ No newline at end of file
# TODO: FIX THIS to delete_status
logger.error(f"Media id not found {media_id} for {status.id}")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment