Fix 500 errors on viewing tickets logged out

This commit is contained in:
Drew DeVault 2018-07-14 15:57:12 -04:00
parent ad10787949
commit 4f4c0e0a79
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ def ticket_GET(owner, name, ticket_id):
if not ticket:
abort(404)
is_subscribed = False
tracker_sub = None
if current_user:
seen = (TicketSeen.query
.filter(TicketSeen.user_id == current_user.id,