From 046be9d6e70308b765fc35fcfe9c8d874271c748 Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Thu, 9 Jul 2015 10:59:31 +0200 Subject: [PATCH] Fix KeyError when hiding past events twice --- indico/MaKaC/services/implementation/category.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indico/MaKaC/services/implementation/category.py b/indico/MaKaC/services/implementation/category.py index 021586c25..0fc585a73 100644 --- a/indico/MaKaC/services/implementation/category.py +++ b/indico/MaKaC/services/implementation/category.py @@ -192,7 +192,7 @@ class SetShowPastEventsForCateg(CategoryDisplayBase): if self._showPastEvents: fpef.add(cid) else: - fpef.remove(cid) + fpef.discard(cid) session.modified = True class CategoryProtectionUserList(CategoryModifBase): -- 2.11.4.GIT