Skip to content
Snippets Groups Projects
Commit f6939571 authored by Christopher Wipf's avatar Christopher Wipf
Browse files

BudgetTrace: missing attribute raises AttributeError not KeyError

parent 900fd7cc
No related branches found
No related tags found
1 merge request!115Resolve "BudgetTrace instances are helpless"
Pipeline #169454 passed
......@@ -53,7 +53,10 @@ class BudgetTrace:
return bdict
def __getattr__(self, name):
return self._bdict[name]
try:
return self._bdict[name]
except KeyError:
raise AttributeError
def __getitem__(self, name):
"""get budget trace by name"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment