Plot: LGTM - don't catch BaseException

This commit is contained in:
Chris Hennes
2021-09-19 14:36:51 -05:00
parent f99059e371
commit 985438f2b2

View File

@@ -199,7 +199,7 @@ def legend(status=True, pos=None, fontsize=None):
# Get resultant position
try:
fax = axes.get_frame().get_extents()
except:
except Exception:
fax = axes.patch.get_extents()
fl = l.get_frame()
plt.legPos = (