Skip to content

Commit 7d23cd3

Browse files
committed
[PATMA] TR Feedback
1 parent 7ffbbfc commit 7d23cd3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

structural-pattern-matching/guessing_game.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,5 @@ def bye():
6262
try:
6363
main()
6464
except (KeyboardInterrupt, EOFError):
65-
print(f"\n{BYE}")
65+
print()
66+
bye()

structural-pattern-matching/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def main():
3030
except EOFError:
3131
print()
3232
exit()
33-
except: # noqa
33+
except Exception:
3434
traceback.print_exc(file=sys.stdout)
3535

3636

structural-pattern-matching/repl_enhanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def main() -> None:
112112
except EOFError:
113113
print()
114114
sys.exit()
115-
except: # noqa
115+
except Exception:
116116
traceback.print_exc(file=sys.stdout)
117117
console.indentation_level = 0
118118
block.lines = []

0 commit comments

Comments
 (0)