mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	uploads: Remove ExceededQuotaError class.
We are no longer using it.
This commit is contained in:
		@@ -78,9 +78,6 @@ def random_name(bytes: int=60) -> Text:
 | 
				
			|||||||
class BadImageError(JsonableError):
 | 
					class BadImageError(JsonableError):
 | 
				
			||||||
    code = ErrorCode.BAD_IMAGE
 | 
					    code = ErrorCode.BAD_IMAGE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ExceededQuotaError(JsonableError):
 | 
					 | 
				
			||||||
    code = ErrorCode.QUOTA_EXCEEDED
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
def resize_avatar(image_data: bytes, size: int=DEFAULT_AVATAR_SIZE) -> bytes:
 | 
					def resize_avatar(image_data: bytes, size: int=DEFAULT_AVATAR_SIZE) -> bytes:
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        im = Image.open(io.BytesIO(image_data))
 | 
					        im = Image.open(io.BytesIO(image_data))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user