Skip to content

Commit c2632f7

Browse files
Kadarla VishwagnaKadarla Vishwagna
authored andcommitted
fix: parenthesize multiple exception types in greatest_common_divisor.py
1 parent c0db072 commit c2632f7

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, UnboundLocalError, ValueError):
7777
print("Wrong input")
7878

7979

0 commit comments

Comments
 (0)