Python Requirements Update (#29516)
* chore: Updating Python Requirements * fix: fix pylint issues Co-authored-by: Mohammad Ahtasham ul Hassan <mohammad.ahtasham@arbisoft.com>
This commit is contained in:
committed by
GitHub
parent
5d5a11fc16
commit
bb20b17428
@@ -82,7 +82,7 @@ class CourseRunTeamSerializerMixin(serializers.Serializer): # lint-amnesty, pyl
|
||||
|
||||
def image_is_jpeg_or_png(value):
|
||||
content_type = value.content_type
|
||||
if content_type not in list(IMAGE_TYPES.keys()):
|
||||
if content_type not in list(IMAGE_TYPES.keys()): # lint-amnesty, pylint: disable=consider-iterating-dictionary
|
||||
raise serializers.ValidationError(
|
||||
f'Only JPEG and PNG image types are supported. {content_type} is not valid')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user