Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Commit

Permalink
Exit if no device is detected
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpadden committed Sep 6, 2019
1 parent 8f062a2 commit 1caa682
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def main(argv):
devices = detect_device()
if not devices:
logging.error("No device was detected!")
sys.exit(1)
else:
device = devices[0]
else:
Expand Down

0 comments on commit 1caa682

Please sign in to comment.