From 912a63d90477e82f622f37c96c2f62c2f51381ea Mon Sep 17 00:00:00 2001 From: James Ridgway Date: Sat, 13 Feb 2021 13:24:29 +0000 Subject: [PATCH] Better handling of no streamdeck and no config --- bin/devdeck | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/devdeck b/bin/devdeck index eebda64..f0c90d7 100644 --- a/bin/devdeck +++ b/bin/devdeck @@ -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)