diff --git a/src/backend/InvenTree/report/migrations/0023_auto_20240421_0455.py b/src/backend/InvenTree/report/migrations/0023_auto_20240421_0455.py index f33ca0f98a..4326acaa04 100644 --- a/src/backend/InvenTree/report/migrations/0023_auto_20240421_0455.py +++ b/src/backend/InvenTree/report/migrations/0023_auto_20240421_0455.py @@ -40,6 +40,10 @@ def forward(apps, schema_editor): filename = template.template.path + if not os.path.exists(filename): + print(f"Migration error: Template file '{filename}' does not exist") + continue + if '/report/inventree/' in filename: # Do not migrate internal report templates continue