issue #1700 replace raise Exception()

This commit is contained in:
Sebastian Hoogen
2014-08-24 14:33:10 +02:00
parent b0a7b0f274
commit c7cfee0539
19 changed files with 38 additions and 37 deletions

View File

@@ -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()