Skip to content

Commit

Permalink
dont crash on startup with possible invalid auto-launch setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfrisby committed Jan 9, 2024
1 parent 96dd32d commit 3017d8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4991,8 +4991,11 @@ def main():

logging.getLogger().handlers[0].setStream(sys.stdout)
logging.info(f"TelemFFB (version {version}) Starting")
try:
vid_pid = [int(x, 16) for x in _device_vid_pid.split(":")]
except:
pass

vid_pid = [int(x, 16) for x in _device_vid_pid.split(":")]
try:
dev = HapticEffect.open(vid_pid[0], vid_pid[1]) # try to open RHINO
if args.reset:
Expand Down

0 comments on commit 3017d8d

Please sign in to comment.