Skip to content

Commit 912a63d

Browse files
committed
Better handling of no streamdeck and no config
1 parent a7e8996 commit 912a63d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/devdeck

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ if __name__ == "__main__":
3636
root.info("Generating a setting file as none exist: %s", settings_filename)
3737
os.makedirs(os.path.join(str(Path.home()), '.devdeck'), exist_ok=True)
3838
DevDeckSettings.generate_default(settings_filename, serial_numbers)
39+
else:
40+
root.info("""No stream deck connected. Please connect a stream deck to generate an initial config file. \n
41+
If you are having difficulty detecting your stream deck please follow the installation
42+
instructions: https://github.com/jamesridgway/devdeck/wiki/Installation""")
43+
exit(0)
3944

4045
try:
4146
settings = DevDeckSettings.load(settings_filename)

0 commit comments

Comments
 (0)