Skip to content

Commit ed75db4

Browse files
committed
Replace logging warn with warning
1 parent 8d3c21e commit ed75db4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dicomweb_client/file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ def is_stop_tag(tag: BaseTag, VR: Optional[str], length: int) -> bool:
10281028
sop_instance_uid = ds.SOPInstanceUID
10291029
instances[sop_instance_uid] = tuple(instance_metadata)
10301030
except AttributeError as error:
1031-
logger.warn(f'failed to parse file "{file_path}": {error}')
1031+
logger.warning(f'failed to parse file "{file_path}": {error}')
10321032
continue
10331033

10341034
if not i % n:
@@ -3003,7 +3003,7 @@ def _get_image_codec_parameters(
30033003
image_type = None
30043004
else:
30053005
# Allow lossy recompression in case of retrieve rendered.
3006-
logger.warn(
3006+
logger.warning(
30073007
'frames of instance "{sop_instance_uid}" are lossy '
30083008
'recompressed upon retrieval'
30093009
)

0 commit comments

Comments
 (0)