Skip to content

Commit

Permalink
Change logger from exception to warning
Browse files Browse the repository at this point in the history
Test suite keeps failing when it handles the logger.exception output.
This change is temporary and probably needs a revisit / better way to
handle it.
  • Loading branch information
kalzun authored and aleksihakli committed Sep 28, 2022
1 parent 83f61bd commit 9669c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions embed_video/templatetags/embed_video_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ def render(self, context):
"Timeout reached during rendering embed video (`{0}`)".format(url)
)
except UnknownBackendException:
logger.exception("Backend wasn't recognised (`{0}`)".format(url))
logger.warning("Backend wasn't recognised (`{0}`)".format(url))
except VideoDoesntExistException:
logger.exception("Attempt to render not existing video (`{0}`)".format(url))
logger.warning("Attempt to render not existing video (`{0}`)".format(url))

return ""

Expand Down

0 comments on commit 9669c86

Please sign in to comment.