Commit dfa590e7 by Julian Arni

Make exception a little more specific

parent 5682e02f
......@@ -101,11 +101,11 @@ class FolditModule(XModule):
# an exception
try:
showbasic = (self.metadata.get("show_basic_score").lower() == "true")
except:
except Exception:
showbasic = False
try:
showleader = (self.metadata.get("show_leaderboard").lower() == "true")
except:
except Exception:
showleader = False
context = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment