Skip to content

Commit 5bd2b22

Browse files
Fix syntax error in exception handling for greatest_common_divisor
1 parent 6c04620 commit 5bd2b22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

maths/greatest_common_divisor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def main():
7373
f"{greatest_common_divisor(num_1, num_2)}"
7474
)
7575
print(f"By iterative gcd({num_1}, {num_2}) = {gcd_by_iterative(num_1, num_2)}")
76-
except IndexError, UnboundLocalError, ValueError:
76+
except (IndexError, ValueError):
7777
print("Wrong input")
7878

7979

0 commit comments

Comments
 (0)