Skip to content

Commit

Permalink
added pyserial check
Browse files Browse the repository at this point in the history
  • Loading branch information
colbycheese55 committed Jul 28, 2024
1 parent d7f1b12 commit 0539fb8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions monitor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from serial import Serial
import serial.tools.list_ports
import sys
try:
from serial import Serial
import serial.tools.list_ports
except ImportError:
print("ERROR: \"pyserial\" must be installed. See the Readme for instructions.")
exit(1)


def get_correct_port() -> str:
Expand Down

0 comments on commit 0539fb8

Please sign in to comment.