summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2019-07-28 16:43:38 +0200
committerPatrick Simianer <pks@pks.rocks>2019-07-28 16:43:38 +0200
commit6423f685e82168ad26df06c9701af89488d6bdec (patch)
tree61dfc9a5f75b3b461235577c46d0a39837aefb47 /python
parent847b438603127dd7213cef471bdfe4c1671d8524 (diff)
python: finally
Diffstat (limited to 'python')
-rw-r--r--python/finally.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/finally.py b/python/finally.py
new file mode 100644
index 0000000..a6f14ab
--- /dev/null
+++ b/python/finally.py
@@ -0,0 +1,10 @@
+def f():
+ try:
+ raise Exception
+ except:
+ return
+ finally:
+ print("exit")
+
+f()
+