summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2017-11-13 05:24:13 -0500
committerOwen Jacobson <owen@grimoire.ca>2017-11-13 05:24:13 -0500
commit6f6bd87759f912354a24ef69f96dd35afc980feb (patch)
treebe4a4eae63611367549c90e03378a816bd67a6b5
parent1b5d9131b15914b276f2f403dc1250c0701dfb82 (diff)
Always return _something_ from `display`
-rw-r--r--actinide/types.py2
1 files changed, 2 insertions, 0 deletions
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)