diff options
author | RossTheRoss <msattr@gmail.com> | 2019-09-13 11:46:56 -0500 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-09-13 11:46:56 -0500 |
commit | 11e76f499ef9c8c03884e91d02eea2a88c4acf4d (patch) | |
tree | d9954e8e0fff43e6b95761165f6b6ac4186821f5 /csci1913/lab1 | |
parent | Change something not broken (diff) | |
download | homework-11e76f499ef9c8c03884e91d02eea2a88c4acf4d.tar homework-11e76f499ef9c8c03884e91d02eea2a88c4acf4d.tar.gz homework-11e76f499ef9c8c03884e91d02eea2a88c4acf4d.tar.bz2 homework-11e76f499ef9c8c03884e91d02eea2a88c4acf4d.tar.lz homework-11e76f499ef9c8c03884e91d02eea2a88c4acf4d.tar.xz homework-11e76f499ef9c8c03884e91d02eea2a88c4acf4d.tar.zst homework-11e76f499ef9c8c03884e91d02eea2a88c4acf4d.zip |
E
Diffstat (limited to '')
-rw-r--r-- | csci1913/lab1/lab1_strap012.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/csci1913/lab1/lab1_strap012.py b/csci1913/lab1/lab1_strap012.py index d69ddc6..48e2ffe 100644 --- a/csci1913/lab1/lab1_strap012.py +++ b/csci1913/lab1/lab1_strap012.py @@ -20,7 +20,7 @@ def solve(v, e): elif isInside(v,right(e)): newE=(right(e),op(e),left(e)) return solving(v,newE) - #Solving defined on line 53 + #Solving defined on line 52 else: return None @@ -56,7 +56,7 @@ def solving(v,q): if op(left(q)) in dispatcher: newQ= dispatcher[op(left(q))](v,q) else: - return -2 + raise ValueError return solving(v,newQ) # |