From 6f6bd87759f912354a24ef69f96dd35afc980feb Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Mon, 13 Nov 2017 05:24:13 -0500 Subject: Always return _something_ from `display` --- actinide/types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actinide/types.py b/actinide/types.py index 13f1368..97ccdbb 100644 --- a/actinide/types.py +++ b/actinide/types.py @@ -257,3 +257,5 @@ def display(value): return display_decimal(value) if procedure_p(value): return display_procedure(value) + # Give up and use repr to avoid printing `None`. + return repr(value) -- cgit v1.2.3