Skip to content

Commit

Permalink
make binref more robust against unit cache conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
huettenhain committed Nov 27, 2024
1 parent 00a03f3 commit 08032f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion refinery/explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from refinery.lib.argparser import RawDescriptionHelpFormatter

import refinery
import refinery.units


def highlight(text, expression, color):
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 08032f1

Please sign in to comment.