Skip to content

Commit

Permalink
Issue a warning when silencing not found output
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrv committed Jun 9, 2024
1 parent b77877a commit 5f5402b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyiron_atomistics/atomistics/job/atomistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
GenericJob as GenericJobCore,
)
from pyiron_snippets.deprecate import deprecate
from pyiron_snippets.logger import logger

try:
from pyiron_base import ProjectGUI
Expand Down Expand Up @@ -1011,6 +1012,7 @@ def f(*args, **kwargs):
try:
return meth(*args, **kwargs)
except ValueError:
logger.warning(f"Could not access {meth.__name__}, returning None!")
return None
return f

Expand Down

0 comments on commit 5f5402b

Please sign in to comment.