From 08032f10b26557fcf779c9df6ea108dbe1c5c35a Mon Sep 17 00:00:00 2001 From: jesko Date: Wed, 27 Nov 2024 06:42:33 +0100 Subject: [PATCH] make binref more robust against unit cache conflicts --- refinery/explore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/refinery/explore.py b/refinery/explore.py index 4f90fbb7b..7d2af3e8a 100644 --- a/refinery/explore.py +++ b/refinery/explore.py @@ -11,6 +11,7 @@ from refinery.lib.argparser import RawDescriptionHelpFormatter import refinery +import refinery.units def highlight(text, expression, color): @@ -144,7 +145,7 @@ def pattern(keyword): args.keywords = [pattern(k) for k in args.keywords] for name in refinery.__all__: - unit = getattr(refinery, name) + unit = getattr(refinery, name, None) try: if not issubclass(unit, refinery.units.Entry) or unit is refinery.units.Entry: