diff options
Diffstat (limited to 'resources')
-rw-r--r-- | resources/libraries/python/VatHistory.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/resources/libraries/python/VatHistory.py b/resources/libraries/python/VatHistory.py index caa3de50f2..e46a73771f 100644 --- a/resources/libraries/python/VatHistory.py +++ b/resources/libraries/python/VatHistory.py @@ -22,10 +22,14 @@ __all__ = ["DICT__duts_vat_history", "VatHistory"] def setup_vat_history(nodes): duts_vat_history = {} - for node in nodes.values(): - if node['type'] == NodeType.DUT: - duts_vat_history[node['host']] = [] - return duts_vat_history + try: + for node in nodes.values(): + if node['type'] == NodeType.DUT: + duts_vat_history[node['host']] = [] + return duts_vat_history + except AttributeError: + # Necessary for the generation of source code documentation. + pass DICT__duts_vat_history = setup_vat_history(DICT__nodes) |