You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
be splitlines? split will split on any whitespace, so this enumeration will not work:
:example 0=ok 1=not ok
Error message:
Traceback (most recent call last):
File "/home/pi/.local/bin/modbus", line 110, in
main()
File "/home/pi/.local/bin/modbus", line 101, in main
definitions.parse(args.registers + os.environ.get('MODBUS_DEFINITIONS', '').split(':'))
File "/home/pi/.local/lib/python3.9/site-packages/modbus_cli/definitions.py", line 25, in parse
self.parse_line(accumulated_line)
File "/home/pi/.local/lib/python3.9/site-packages/modbus_cli/definitions.py", line 40, in parse_line
name, values = self.parse_presenter(line)
File "/home/pi/.local/lib/python3.9/site-packages/modbus_cli/definitions.py", line 63, in parse_presenter
value, symbol = definition.split('=')
ValueError: not enough values to unpack (expected 2, got 1)
The text was updated successfully, but these errors were encountered:
Shouldn't
modbus-cli/modbus_cli/definitions.py
Line 58 in c889b6d
splitlines
?split
will split on any whitespace, so this enumeration will not work::example 0=ok 1=not ok
Error message:
The text was updated successfully, but these errors were encountered: