Skip to content

Commit 0de7181

Browse files
authored
Merge branch 'main' into main
2 parents 63cba8a + e42884a commit 0de7181

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
### Fixes
99
- **Fix image extraction for PNG files.** When `extract_image_block_to_payload` is True, and the image is a PNG, we get a Pillow error. We need to remove the PNG transparency layer before saving the image.
10+
- **Fix logger deprecation warning**: Replaced usage of `logger.warn` with `logger.warning` to comply with the Python logging standards.
1011
- **Throw validation error when json is passed with invalid unstructured json
1112

1213
## 0.17.6

unstructured/partition/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def partition_via_api(
8686

8787
if file_filename is not None:
8888
metadata_filename = file_filename
89-
logger.warn(
89+
logger.warning(
9090
"The file_filename kwarg will be deprecated in a future version of unstructured. "
9191
"Please use metadata_filename instead.",
9292
)
@@ -277,7 +277,7 @@ def partition_multiple_via_api(
277277

278278
if file_filenames is not None:
279279
metadata_filenames = file_filenames
280-
logger.warn(
280+
logger.warning(
281281
"The file_filenames kwarg will be deprecated in a future version of unstructured. "
282282
"Please use metadata_filenames instead.",
283283
)

0 commit comments

Comments
 (0)