Skip to content

Commit

Permalink
Change error level to warning in department import
Browse files Browse the repository at this point in the history
If parent department is not found, change the error level to warning.
  • Loading branch information
japauliina committed Aug 8, 2024
1 parent 185d960 commit 737a765
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def import_departments(noop=False, logger=None, fetch_resource=pk_get):
parent = Department.objects.get(uuid=parent_id)
obj.parent_id = parent.id
except Department.DoesNotExist:
logger and logger.error(
logger and logger.warning(
"Department import: no parent with uuid {} found for {}".format(
parent_id, d["id"]
)
Expand Down

0 comments on commit 737a765

Please sign in to comment.