Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Jul 11, 2022
1 parent 3206261 commit 2f7ffae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions emmet-builders/emmet/builders/vasp/materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,11 @@ def filter_and_group_tasks(
zip(filtered_tasks, filtered_transmuters)
):
if task.task_type == TaskType.Deformation:
if transmuter is None: # Do not include deformed tasks without transmuter information
if (
transmuter is None
): # Do not include deformed tasks without transmuter information
self.logger.warn(
"Cannot find transmuter for deformation task {}".format(
"Cannot find transmuter for deformation task {}. Excluding task.".format(
task.task_id
)
)
Expand Down

0 comments on commit 2f7ffae

Please sign in to comment.