X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FVatHistory.py;h=e46a73771fff0a1061f059ec108e653d702b8515;hp=caa3de50f2df42bc4c54a57968300ea459699ab0;hb=38ac6262bcd8dcf2d9a600188c7adb5989ff86b8;hpb=6a4018c9d8b356bc55af135d68803a08729d0ae1 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)