issue #1700 replace raise Exception()
This commit is contained in:
@@ -32,7 +32,7 @@ class Epitrochoid:
|
||||
z=0
|
||||
|
||||
if r2 == 0:
|
||||
raise Exception("Exterior radius must not be zero")
|
||||
raise ValueError("Exterior radius must not be zero")
|
||||
|
||||
for i in range(steps):
|
||||
if i==0:
|
||||
@@ -66,4 +66,4 @@ def makeEpitrochoid():
|
||||
doc.recompute()
|
||||
|
||||
if __name__ == "__main__": #feature will be generated after macro execution
|
||||
makeEpitrochoid()
|
||||
makeEpitrochoid()
|
||||
|
||||
Reference in New Issue
Block a user