Fix one case of Path object conversion that was missed during the refactoring (#929)

This commit is contained in:
Daniel Markstedt 2022-10-22 08:01:08 -07:00 committed by GitHub
parent ade656e38b
commit e3e833b4d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -642,8 +642,8 @@ def attach_image():
# Attempt to load the device properties file:
# same file name with PROPERTIES_SUFFIX appended
drive_properties = f"{CFG_DIR}/{file_name}.{PROPERTIES_SUFFIX}"
if Path(drive_properties).is_file():
drive_properties = Path(CFG_DIR) / f"{file_name}.{PROPERTIES_SUFFIX}"
if drive_properties.is_file():
process = file_cmd.read_drive_properties(drive_properties)
process = ReturnCodeMapper.add_msg(process)
if not process["status"]: