From 4f615f9a9d936bf2f2470518ce11a25c08ccf11d Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Mon, 20 Sep 2021 23:41:55 -0700 Subject: [PATCH] replace ambiguous except block with if-statement --- svgpathtools/bezier.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/svgpathtools/bezier.py b/svgpathtools/bezier.py index 7c82834..5eb9f91 100644 --- a/svgpathtools/bezier.py +++ b/svgpathtools/bezier.py @@ -31,13 +31,9 @@ def bezier_point(p, t): Warning: Be concerned about numerical stability when using this function with high order curves.""" - # begin arc support block ######################## - try: - p.large_arc + # for Arc support + if hasattr(p, 'radius'): return p.point(t) - except: - pass - # end arc support block ########################## deg = len(p) - 1 if deg == 3: