From 99f2430155b79c1a60dd1fcdfd159b12b5ccbc84 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Wed, 20 Jul 2016 12:08:39 -0500 Subject: [PATCH] Variable Explorer: Fix error when bs4 is installed incorrectly --- spyderlib/widgets/variableexplorer/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spyderlib/widgets/variableexplorer/utils.py b/spyderlib/widgets/variableexplorer/utils.py index 4116ef6ff6a..9f450d92c60 100644 --- a/spyderlib/widgets/variableexplorer/utils.py +++ b/spyderlib/widgets/variableexplorer/utils.py @@ -98,7 +98,7 @@ def get_numpy_dtype(obj): try: import bs4 NavigableString = bs4.element.NavigableString -except ImportError: +except (ImportError, AttributeError): NavigableString = FakeObject # analysis:ignore