uploads: Remove ExceededQuotaError class.

We are no longer using it.
This commit is contained in:
Vishnu Ks
2017-12-29 00:52:18 +05:30
committed by Greg Price
parent a5e55cee9b
commit 7dbb4cdae2

View File

@@ -78,9 +78,6 @@ def random_name(bytes: int=60) -> Text:
class BadImageError(JsonableError):
code = ErrorCode.BAD_IMAGE
class ExceededQuotaError(JsonableError):
code = ErrorCode.QUOTA_EXCEEDED
def resize_avatar(image_data: bytes, size: int=DEFAULT_AVATAR_SIZE) -> bytes:
try:
im = Image.open(io.BytesIO(image_data))