Skip to content
Snippets Groups Projects
Commit a9c3bce2 authored by Julian Oes's avatar Julian Oes
Browse files

px_uploader.py: fix version check

Presumably older versions of pyserial do not implement __version__ but
only VERSION, so we need to check for that as well.
parent 42d0522c
No related branches found
No related tags found
No related merge requests found
......@@ -728,7 +728,7 @@ def main():
# We need to check for pyserial because the import itself doesn't
# seem to fail, at least not on macOS.
try:
if serial.__version__:
if serial.__version__ or serial.VERSION:
pass
except:
print("Error: pyserial not installed!")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment