Improve NoOptionError traceback
This commit is contained in:
parent
413c7ec1ac
commit
a92ffd9770
@ -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."""
|
||||||
|
Loading…
Reference in New Issue
Block a user