diff --git a/python-exception/README.md b/python-exception/README.md new file mode 100644 index 0000000..c903bf8 --- /dev/null +++ b/python-exception/README.md @@ -0,0 +1,6 @@ +```python +import contextlib +_try = contextlib.suppress(Exception) +with _try: print(1/0) +with _try: print(1/1) +``` \ No newline at end of file