We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a11ac6 commit b1e2ac6Copy full SHA for b1e2ac6
nucleus/__init__.py
@@ -416,7 +416,9 @@ def preprocess_payload(batch):
416
(ITEMS_KEY, (None, json.dumps(batch), "application/json"))
417
]
418
for item in batch:
419
- image = open(item.get(IMAGE_URL_KEY), "rb")
+ image = open( # pylint: disable=R1732
420
+ item.get(IMAGE_URL_KEY), "rb" # pylint: disable=R1732
421
+ ) # pylint: disable=R1732
422
img_name = os.path.basename(image.name)
423
img_type = (
424
f"image/{os.path.splitext(image.name)[1].strip('.')}"
0 commit comments