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).
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user