Permalink
Browse files

Merge pull request #275 from charmander/sentry-1025

Avoid UnboundLocalError on bad request
  • Loading branch information...
charmander committed Oct 26, 2017
2 parents 46fd6ee + e67a07c commit f092dc619f522cdc287f99ba6c6381ad3e76d151
Showing with 2 additions and 0 deletions.
  1. +2 −0 weasyl/controllers/profile.py
@@ -396,6 +396,8 @@ def _FEATURE(target):
select_function = favorite.select_char
elif form.feature == "journal":
select_function = favorite.select_journal
else:
raise httpexceptions.HTTPNotFound()
faves = pagination.PaginatedResult(
select_function, count_function,

0 comments on commit f092dc6

Please sign in to comment.