Commit dfa590e7 by Julian Arni

Make exception a little more specific

parent 5682e02f
...@@ -101,11 +101,11 @@ class FolditModule(XModule): ...@@ -101,11 +101,11 @@ class FolditModule(XModule):
# an exception # an exception
try: try:
showbasic = (self.metadata.get("show_basic_score").lower() == "true") showbasic = (self.metadata.get("show_basic_score").lower() == "true")
except: except Exception:
showbasic = False showbasic = False
try: try:
showleader = (self.metadata.get("show_leaderboard").lower() == "true") showleader = (self.metadata.get("show_leaderboard").lower() == "true")
except: except Exception:
showleader = False showleader = False
context = { 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