Hackfut Security File Manager
Current Path:
/usr/lib/python2.6/site-packages/boto/beanstalk
usr
/
lib
/
python2.6
/
site-packages
/
boto
/
beanstalk
/
📁
..
📄
__init__.py
(1.64 KB)
📄
__init__.pyc
(1009 B)
📄
__init__.pyo
(1009 B)
📄
exception.py
(2.08 KB)
📄
exception.pyc
(6.63 KB)
📄
exception.pyo
(6.63 KB)
📄
layer1.py
(54.94 KB)
📄
layer1.pyc
(49.47 KB)
📄
layer1.pyo
(49.47 KB)
📄
response.py
(27.39 KB)
📄
response.pyc
(33.28 KB)
📄
response.pyo
(33.28 KB)
📄
wrapper.py
(1.05 KB)
📄
wrapper.pyc
(1.91 KB)
📄
wrapper.pyo
(1.91 KB)
Editing: exception.py
import sys from boto.compat import json from boto.exception import BotoServerError def simple(e): code = e.code if code.endswith('Exception'): code = code.rstrip('Exception') try: # Dynamically get the error class. simple_e = getattr(sys.modules[__name__], code)(e) except AttributeError: # Return original exception on failure. return e return simple_e class SimpleException(BotoServerError): def __init__(self, e): super(SimpleException, self).__init__(e.status, e.reason, e.body) self.error_message = self.message def __repr__(self): return self.__class__.__name__ + ': ' + self.error_message def __str__(self): return self.__class__.__name__ + ': ' + self.error_message class ValidationError(SimpleException): pass # Common beanstalk exceptions. class IncompleteSignature(SimpleException): pass class InternalFailure(SimpleException): pass class InvalidAction(SimpleException): pass class InvalidClientTokenId(SimpleException): pass class InvalidParameterCombination(SimpleException): pass class InvalidParameterValue(SimpleException): pass class InvalidQueryParameter(SimpleException): pass class MalformedQueryString(SimpleException): pass class MissingAction(SimpleException): pass class MissingAuthenticationToken(SimpleException): pass class MissingParameter(SimpleException): pass class OptInRequired(SimpleException): pass class RequestExpired(SimpleException): pass class ServiceUnavailable(SimpleException): pass class Throttling(SimpleException): pass # Action specific exceptions. class TooManyApplications(SimpleException): pass class InsufficientPrivileges(SimpleException): pass class S3LocationNotInServiceRegion(SimpleException): pass class TooManyApplicationVersions(SimpleException): pass class TooManyConfigurationTemplates(SimpleException): pass class TooManyEnvironments(SimpleException): pass class S3SubscriptionRequired(SimpleException): pass class TooManyBuckets(SimpleException): pass class OperationInProgress(SimpleException): pass class SourceBundleDeletion(SimpleException): pass
Upload File
Create Folder