Skip to content

Commit

Permalink
utils: change to user-friendly error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kahkeng committed Aug 15, 2023
1 parent 8c5e2be commit 94fb71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def wrapped_fn(*args, **kwargs):
return str(e)
except Exception as e:
traceback.print_exc()
return f'Got exception evaluating {fn.__name__}(args={args}, kwargs={kwargs}): {e}'
return "An error occurred. Please try again."

@functools.wraps(fn)
def wrapped_generator_fn(*args, **kwargs):
Expand Down

0 comments on commit 94fb71c

Please sign in to comment.