dmroeder / pylogix

Read/Write data from Allen Bradley Compact/Control Logix PLC's
Apache License 2.0
599 stars 182 forks source link

get_error_codes patch #78

Closed TheFern2 closed 5 years ago

TheFern2 commented 5 years ago

Modified the way the error status is returned, because Response is nested in some places. Is outputting conflicting information:

Before fix:

Response(None, tags.Value, tags.Status)
output: Unknown error Success

After fix:

Response(None, tags.Value, tags.Status)
output: Success

Tested in both py2, py3.