summaryrefslogtreecommitdiff
path: root/misc/exceptions.py
diff options
context:
space:
mode:
authormlot <petri-rush-curvy@duck.com>2025-06-06 13:40:57 -0400
committermlot <petri-rush-curvy@duck.com>2025-06-06 13:40:57 -0400
commit75a42ec54dbf721caa659ddf02c1f46fc2cb4bef (patch)
tree84be794a2481e356a7784557a6f9fb6fbf29cfdd /misc/exceptions.py
initial commit for archivingHEADmain
Diffstat (limited to 'misc/exceptions.py')
-rw-r--r--misc/exceptions.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/exceptions.py b/misc/exceptions.py
new file mode 100644
index 0000000..e59194f
--- /dev/null
+++ b/misc/exceptions.py
@@ -0,0 +1,11 @@
+#exceptions
+
+def spam(divided_by):
+ try:
+ return 42 / divided_by
+ except:
+ print('Invalid argument.')
+
+print(spam(2))
+print(spam(0))
+print(spam(1))