Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 f092dc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions weasyl/controllers/profile.py
Expand Up @@ -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,
Expand Down

0 comments on commit f092dc6

Please sign in to comment.