* StandardError doesn't exist in python3
* because it is the root of builtin expections, we can't catch it
separate from the builtin exceptions
* It doesn't tell us anything about the error being thrown as it's too
generic
raiseStandardError("Region %s does not seem to be available for aws module %s. If the region definitely exists, you may need to upgrade boto or extend with endpoints_path"%(region,aws_module.__name__))
raiseAnsibleAWSError("Region %s does not seem to be available for aws module %s. If the region definitely exists, you may need to upgrade boto or extend with endpoints_path"%(region,aws_module.__name__))
else:
raiseStandardError("Unknown problem connecting to region %s for aws module %s."%(region,aws_module.__name__))
raiseAnsibleAWSError("Unknown problem connecting to region %s for aws module %s."%(region,aws_module.__name__))