Skip to content

Commit 860f498

Browse files
committed
format
1 parent 4809be9 commit 860f498

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/videoipath_automation_tool/apps/inventory/app/create_device_from_discovered_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ def create_device_from_discovered_device(
963963

964964
if suggested_config_index >= count_of_suggested_configs or suggested_config_index < 0:
965965
raise ValueError(
966-
f"suggested_config_index is out of range. {f'Please provide a index between 0 and {count_of_suggested_configs - 1}' if (count_of_suggested_configs-1) > 0 else 'Please provide 0 as index.'}"
966+
f"suggested_config_index is out of range. {f'Please provide a index between 0 and {count_of_suggested_configs - 1}' if (count_of_suggested_configs - 1) > 0 else 'Please provide 0 as index.'}"
967967
)
968968

969969
suggested_config = discovered_device.suggestedConfigs[suggested_config_index]

src/videoipath_automation_tool/apps/inventory/model/inventory_request_rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def update(self, device: InventoryDevice):
2626
validate_device_id(device.configuration.id)
2727
except ValueError as e:
2828
raise ValueError(
29-
"To update a device, a valid 'device_id' must be set in the device configuration. " f"Error: {e}"
29+
f"To update a device, a valid 'device_id' must be set in the device configuration. Error: {e}"
3030
)
3131
return super().update(device.configuration.id, device.configuration)
3232

0 commit comments

Comments
 (0)