mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 02:14:04 +00:00
Update utils.py
This commit is contained in:
parent
25dcc9ff62
commit
5546468d60
1 changed files with 1 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue