Skip to content

Commit

Permalink
Error message improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC committed Feb 8, 2024
1 parent 06d7d1d commit 943cd3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leads_raspberry_pi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from importlib.util import find_spec as _find_spec

if not _find_spec("RPi"):
raise ImportError("Please install `RPi.GPIO` to run this module\n>>>pip install RPi.GPIO")
raise ImportError("Please install `RPi.GPIO` to run this module\n>>>apt install python3-rpi.gpio")
if not _find_spec("serial"):
raise ImportError("Please install `pyserial` to run this module\n>>>pip install pyserial")

Expand Down

0 comments on commit 943cd3c

Please sign in to comment.