Skip to content

Commit

Permalink
some variable rename got lost while refactoring
Browse files Browse the repository at this point in the history
Do not try to access a variable that's been renamed.
Partially fixes #1
  • Loading branch information
fargiolas committed Jan 20, 2023
1 parent 6375f7a commit 4996a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opcng/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def _read_bytes(self, cmd, sz):

result = bytearray(buf)
if len(result) < sz:
logger.error('Something failed while reading byte sequence, expected size: {}, received: {}'.format(sz, len(l)))
logger.error('Something failed while reading byte sequence, expected size: {}, received: {}'.format(sz, len(result)))

return result

Expand Down

0 comments on commit 4996a43

Please sign in to comment.