From c5cc5ca4eecb503f0e37d8a12e0a379c269c4aea Mon Sep 17 00:00:00 2001 From: Erica Forget Date: Mon, 22 May 2017 19:51:43 -0500 Subject: [PATCH] clarify example so it runs when copied add comment about indentation and the ex2 to call it in the test_what_exception_do_you_get_when_calling_nonexistent_methods_on_None method. --- python 3/koans/about_none.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python 3/koans/about_none.py b/python 3/koans/about_none.py index c75e5a2..1b1e5a7 100644 --- a/python 3/koans/about_none.py +++ b/python 3/koans/about_none.py @@ -26,10 +26,13 @@ def test_what_exception_do_you_get_when_calling_nonexistent_methods_on_None(self Don't worry about what 'try' and 'except' do, we'll talk about this later """ + # Don't forget to unindent before you try to run this code block: try: None.some_method_none_does_not_know_about() except Exception as ex: ex2 = ex + + ex2 # What exception has been caught? self.assertEqual(__, ex2.__class__.__name__)