code review fixed for PAP

CURA-11403
This commit is contained in:
Saumya Jain 2024-03-05 14:08:39 +01:00
parent 3312ab66ba
commit 3e23ce1c37
4 changed files with 8 additions and 8 deletions

View file

@ -1985,7 +1985,7 @@ class CuraApplication(QtApplication):
file_name = QUrl(file).toLocalFile()
workspace_reader = self.getWorkspaceFileHandler()
if workspace_reader is None:
Logger.log("w", "Workspace reader not found")
Logger.warning(f"Workspace reader not found, cannot read file {file_name}.")
return
workspace_reader.getReaderForFile(file_name).setOpenAsUcp(True)