Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_file(self, filename, etag=None):
try:
return self.root.openers.open(filename, etag)
except NotModified as e:
raise UnmodifiedAsset(str(e))
except NotFound as e:
raise MissingAsset(str(e))
def get_file(self, filename, etag=None):
try:
return self.root.openers.open(filename, etag)
except NotModified, e:
raise UnmodifiedAsset(str(e))
except NotFound, e:
raise MissingAsset(str(e))
def get_file(self, filename, etag=None):
try:
return self.root.openers.open(filename, etag)
except NotModified, e:
raise UnmodifiedAsset(str(e))
except NotFound, e:
raise MissingAsset(str(e))