From 5546468d608afcf4f9360a462bd368d224c60e96 Mon Sep 17 00:00:00 2001 From: Xiang Gao Date: Thu, 30 May 2019 01:47:29 -0400 Subject: [PATCH] Update utils.py --- pysnooper/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysnooper/utils.py b/pysnooper/utils.py index cab633f..8c27006 100644 --- a/pysnooper/utils.py +++ b/pysnooper/utils.py @@ -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'