xenanetworks / open-automation-core

🚀 XOA framework for test execution, tester management, and data subscription.
https://docs.xenanetworks.com/projects/xoa-core
Apache License 2.0
2 stars 0 forks source link

TesterCommunicationError message is not detail enough #46

Open fpfeng opened 1 year ago

fpfeng commented 1 year ago

The message is too simple when connect to tester failed. xoa_core.core.resources.resource.exceptions.TesterCommunicationError: Tester with credentials: product=<EProductType.VALKYRIE: 1> host='demo.xenanetworks.com' port=22606 password=SecretStr('**********') encountering communication error: capabilities you have no idea "capabilities" means and have to change core's code to print out more detail log.

here is the original error:

  File "/home/chf/xena/driver_v2/xoa_driver/internals/hli_v1/ports/port_l23/pcs_pma_ghijkl.py", line 224, in __init__
    for idx in range(self.__port.info.capabilities.lane_count)
                     └ <xoa_driver.internals.hli_v1.ports.port_l23.pcs_pma_ghijkl.PcsPma object at 0x7fbfdd4d4070>

AttributeError: capabilities

I suggest raise whole traceback or some other good idea from your guys.