Skip to content

Commit

Permalink
print problematic field before quitting
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Dec 23, 2020
1 parent aa67c4e commit bf076cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yt/fields/field_info_container.py
Expand Up @@ -506,8 +506,9 @@ def check_derived_fields(self, fields_to_check=None):
# of those deactivated, then see which tests fail and solve the
# underlying issues locally.
fd = fi.get_dependencies(ds=self.ds)
except blacklist:
raise
except blacklist as err:
print(f"{err.__class__} raised for field {field}")
raise SystemExit(1) from err
except (*whitelist, *greylist) as e:
if field in self._show_field_errors:
raise
Expand Down

0 comments on commit bf076cf

Please sign in to comment.