From 29617ea22f2ee21f5bf1d1bf88e64745f672d620 Mon Sep 17 00:00:00 2001 From: Saumya Jain Date: Mon, 8 Apr 2024 12:42:33 +0200 Subject: [PATCH] removed path with parent because it doesn't exist anymore --- printer-linter/src/printerlinter/linters/directory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printer-linter/src/printerlinter/linters/directory.py b/printer-linter/src/printerlinter/linters/directory.py index 616c20af02..e1b04c84f6 100644 --- a/printer-linter/src/printerlinter/linters/directory.py +++ b/printer-linter/src/printerlinter/linters/directory.py @@ -36,7 +36,7 @@ class Directory(Linter): """ Check if there is a file that is deleted, this causes upgrade scripts to not work properly """ yield Diagnostic( - file = self._file, + file = self._file.parent, diagnostic_name = "diagnostic-resource-file-deleted", message = f"File: {self._file} must not be deleted as it is not allowed. It will create issues upgrading Cura", level = "Error",