~sircmpwn/todo.sr.ht

718feb66ef15e56cf01b058b9317471fc22908a3 — Drew DeVault 2 months ago 999fe57 0.62.5
/:owner/:tracker/labels: Fix 500 on missing tracker
1 files changed, 1 insertions(+), 1 deletions(-)

M todosrht/blueprints/tracker.py
M todosrht/blueprints/tracker.py => todosrht/blueprints/tracker.py +1 -1
@@ 232,10 232,10 @@ def tracker_submit_POST(owner, name):
@tracker.route("/<owner>/<name>/labels")
def tracker_labels_GET(owner, name):
    tracker, access = get_tracker(owner, name)
    is_owner = current_user and current_user.id == tracker.owner_id
    if not tracker:
        abort(404)

    is_owner = current_user and current_user.id == tracker.owner_id
    return render_template("tracker-labels.html",
        tracker=tracker, access=access, is_owner=is_owner)