From 0c074ea0053ee7389b310ce33002c48f696dbcf2 Mon Sep 17 00:00:00 2001 From: Jennifer Manriquez Date: Thu, 8 Jul 2021 13:35:22 -0500 Subject: [PATCH] Raise TypeError instead of Exception --- pyqtgraph/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtgraph/functions.py b/pyqtgraph/functions.py index b08b1d3c..5b8cf8f7 100644 --- a/pyqtgraph/functions.py +++ b/pyqtgraph/functions.py @@ -722,7 +722,7 @@ def eq(a, b): else: return e.all() else: - raise Exception("== operator returned type %s" % str(type(e))) + raise TypeError("== operator returned type %s" % str(type(e))) def affineSliceCoords(shape, origin, vectors, axes):