From 75a42ec54dbf721caa659ddf02c1f46fc2cb4bef Mon Sep 17 00:00:00 2001 From: mlot Date: Fri, 6 Jun 2025 13:40:57 -0400 Subject: initial commit for archiving --- misc/errorExample.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 misc/errorExample.py (limited to 'misc/errorExample.py') diff --git a/misc/errorExample.py b/misc/errorExample.py new file mode 100644 index 0000000..fe610e6 --- /dev/null +++ b/misc/errorExample.py @@ -0,0 +1,11 @@ +#!python3 + +#Chapter 10 Error Example + +def spam(): + bacon() + +def bacon(): + raise Exception('This is the error message') + +spam() -- cgit