replace ambiguous except block with if-statement

security-update
Andrew Port 2021-09-20 23:41:55 -07:00
parent ace8522c19
commit 4f615f9a9d
1 changed files with 2 additions and 6 deletions

View File

@ -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: