diff --git a/plugins/Python.py b/plugins/Python.py index a7e426406..4a3dd4778 100644 --- a/plugins/Python.py +++ b/plugins/Python.py @@ -48,9 +48,11 @@ import string # Stupid printing on import... from cStringIO import StringIO -sys.stdout = StringIO() -import this -sys.stdout = sys.__stdout__ +try: + sys.stdout = StringIO() + import this +finally: + sys.stdout = sys.__stdout__ import conf import utils