We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 466afba commit 66ef15cCopy full SHA for 66ef15c
opensensor/collection_apis.py
@@ -585,10 +585,9 @@ def sample_and_paginate_collection(
585
try:
586
if isinstance(relay, str):
587
relay = json.loads(relay)
588
- if isinstance(relay, list):
589
- relay = relay[0]
590
relays.append(RelayStatus(**relay))
591
- except Exception:
+ except Exception as e:
+ logger.error(f"Error creating RelayStatus: {e}")
592
pass # Ignore invalid relay data
593
relay_board = RelayBoard(relays=relays)
594
data.append(relay_board)
0 commit comments