From 157e3e9b72eb7b43a1243482003d4e5301503424 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 28 Apr 2012 18:09:37 +0200 Subject: [PATCH] Fixed #18013 -- Use the new 'as' syntax for exceptions. Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6). --- formtools/wizard/storage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formtools/wizard/storage/__init__.py b/formtools/wizard/storage/__init__.py index b88ccc7..f2293c9 100644 --- a/formtools/wizard/storage/__init__.py +++ b/formtools/wizard/storage/__init__.py @@ -10,7 +10,7 @@ def get_storage(path, *args, **kwargs): module, attr = path[:i], path[i+1:] try: mod = import_module(module) - except ImportError, e: + except ImportError as e: raise MissingStorageModule( 'Error loading storage %s: "%s"' % (module, e)) try: