diff --git a/4. Tips & Tricks for working with Jython.md b/4.-Tips-&-Tricks-for-working-with-Jython.md similarity index 94% rename from 4. Tips & Tricks for working with Jython.md rename to 4.-Tips-&-Tricks-for-working-with-Jython.md index 646b373..c3e0073 100644 --- a/4. Tips & Tricks for working with Jython.md +++ b/4.-Tips-&-Tricks-for-working-with-Jython.md @@ -26,6 +26,13 @@ If you want to catch all exceptions (e.g. for debugging), **do not `except Excep Since we're using jython, this will not catch Java exceptions. Instead, use `except` and print the traceback. This will give you some more deatails: ```python +# bad +try: + #code +except Exception, e: # will not catch Java Exceptions + print(e) + +# good from traceback import format_exc as trace try: #code