Skip to content

Commit

Permalink
Removed exit from module import test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Sep 6, 2016
1 parent ff35498 commit f5191d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/blinkt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

try:
import RPi.GPIO as GPIO
except ImportError:
exit("This library requires the RPi.GPIO module\nInstall with: sudo pip install RPi.GPIO")
except ImportError as e:
print("\n\nThis library requires the RPi.GPIO module\nInstall with: sudo pip install RPi.GPIO\n\n")
raise ImportError(e)


DAT = 23
Expand Down

0 comments on commit f5191d8

Please sign in to comment.