Improve NoOptionError traceback

This commit is contained in:
Florian Bruhin 2017-09-15 15:58:38 +02:00
parent 413c7ec1ac
commit a92ffd9770

View File

@ -407,7 +407,7 @@ class Config(QObject):
try: try:
return configdata.DATA[name] return configdata.DATA[name]
except KeyError: except KeyError:
raise configexc.NoOptionError(name) raise configexc.NoOptionError(name) from None
def get(self, name): def get(self, name):
"""Get the given setting converted for Python code.""" """Get the given setting converted for Python code."""