Update utils.py

This commit is contained in:
Xiang Gao 2019-05-30 01:47:29 -04:00 committed by Ram Rachum
parent 25dcc9ff62
commit 5546468d60

View file

@ -59,8 +59,8 @@ def get_repr_function(item, custom_repr):
def get_shortish_repr(item, custom_repr=()):
repr_function = get_repr_function(item, custom_repr)
try:
repr_function = get_repr_function(item, custom_repr)
r = repr_function(item)
except Exception:
r = 'REPR FAILED'