mirror of
https://github.com/tuya-cloudcutter/tuya-cloudcutter.git
synced 2026-02-19 21:51:18 +01:00
Do not expect combined JSON to be a directory
This commit is contained in:
@@ -86,12 +86,8 @@ def __configure_local_device_or_update_firmware(args, update_firmare: bool = Fal
|
||||
print(f"Configuration file {args.config} does not exist", file=sys.stderr)
|
||||
sys.exit(10)
|
||||
|
||||
if not os.path.exists(args.profile):
|
||||
print(f"Device profile directory {args.profile} does not exist", file=sys.stderr)
|
||||
sys.exit(20)
|
||||
|
||||
if not os.path.isdir(args.profile):
|
||||
print(f"Provided device profile path {args.profile} is not a directory", file=sys.stderr)
|
||||
if not os.path.isfile(args.profile):
|
||||
print(f"Provided device profile JSON {args.profile} does not exist, or is not a file", file=sys.stderr)
|
||||
sys.exit(30)
|
||||
|
||||
config = DeviceConfig.read(args.config)
|
||||
|
||||
Reference in New Issue
Block a user