Skip to content

Commit

Permalink
Merge pull request #145 from adoy/fix-ref-before-assign
Browse files Browse the repository at this point in the history
Fix local variable 'version_server' referenced before assignment
  • Loading branch information
bordaigorl authored Dec 4, 2022
2 parents 9a48de1 + f9104f0 commit 7fbcc7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rmview/rfb.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def _handleInitial(self):
buffer = b''.join(self._packet)
if b'\n' in buffer:
version = 3.8
version_server = 3.8
if buffer[:3] == b'RFB':
version_server = float(buffer[3:-1].replace(b'0', b''))
SUPPORTED_VERSIONS = (3.3, 3.7, 3.8)
Expand Down

0 comments on commit 7fbcc7c

Please sign in to comment.