replace ambiguous except block with if-statement
parent
ace8522c19
commit
4f615f9a9d
|
@ -31,13 +31,9 @@ def bezier_point(p, t):
|
||||||
Warning: Be concerned about numerical stability when using this function
|
Warning: Be concerned about numerical stability when using this function
|
||||||
with high order curves."""
|
with high order curves."""
|
||||||
|
|
||||||
# begin arc support block ########################
|
# for Arc support
|
||||||
try:
|
if hasattr(p, 'radius'):
|
||||||
p.large_arc
|
|
||||||
return p.point(t)
|
return p.point(t)
|
||||||
except:
|
|
||||||
pass
|
|
||||||
# end arc support block ##########################
|
|
||||||
|
|
||||||
deg = len(p) - 1
|
deg = len(p) - 1
|
||||||
if deg == 3:
|
if deg == 3:
|
||||||
|
|
Loading…
Reference in New Issue