Skip to content

Commit

Permalink
+ exception catcher fix
Browse files Browse the repository at this point in the history
  • Loading branch information
avivajpeyi committed Feb 15, 2022
1 parent 7ea79bc commit 6066e78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tess_atlas/plotting/plotting_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ def get_lc_and_gp_from_inference_object(model, inference_data):
def exception_catcher(func):
def wrapper(*args, **kwargs):
try:
res = func(*args, **kwargs)
return func(*args, **kwargs)
except Exception as e:
logger.warning(f"Skipping {func}({args}, {kwargs}): {e}")
return res
pass

return wrapper

0 comments on commit 6066e78

Please sign in to comment.