Skip to content

Commit

Permalink
Merge branch 'develop' into async
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Nov 11, 2024
2 parents db82f25 + 5313fbc commit 773ddd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content_api/assets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ async def get_media_streamed(media_id):
if not app.auth.authorized([], "assets", "GET"):
return app.auth.authenticate()
try:
media_id = media_id.split(".")[0]
media_file = app.media.get(media_id, "upload")
if not media_file:
media_id = media_id.split(".")[0]
media_file = app.media.get(media_id, "upload")
except bson.errors.InvalidId:
media_file = None
if media_file:
Expand Down

0 comments on commit 773ddd3

Please sign in to comment.