Skip to content

Commit

Permalink
Better handling of no streamdeck and no config
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesridgway committed Feb 13, 2021
1 parent a7e8996 commit 912a63d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/devdeck
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ if __name__ == "__main__":
root.info("Generating a setting file as none exist: %s", settings_filename)
os.makedirs(os.path.join(str(Path.home()), '.devdeck'), exist_ok=True)
DevDeckSettings.generate_default(settings_filename, serial_numbers)
else:
root.info("""No stream deck connected. Please connect a stream deck to generate an initial config file. \n
If you are having difficulty detecting your stream deck please follow the installation
instructions: https://github.com/jamesridgway/devdeck/wiki/Installation""")
exit(0)

try:
settings = DevDeckSettings.load(settings_filename)
Expand Down

0 comments on commit 912a63d

Please sign in to comment.