File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,8 @@ def _log_metadata(self):
183
183
logger .debug (f"Metadata: { name } = { value .decode ('UTF-8' )} " )
184
184
except Exception :
185
185
logger .debug (
186
- f"Metadata: { name } is a { len (value )} bytes { mimetype } blob"
186
+ f"Metadata: { name } is a { len (value )} bytes { mimetype } blob "
187
+ "not decodable as an UTF-8 string"
187
188
)
188
189
continue
189
190
Original file line number Diff line number Diff line change @@ -604,7 +604,10 @@ def __str__(self):
604
604
mocked_logger .debug .assert_has_calls (
605
605
[
606
606
call ("Metadata: Chars = šɔɛ" ),
607
- call ("Metadata: Chars-32 is a 16 bytes text/plain blob" ),
607
+ call (
608
+ "Metadata: Chars-32 is a 16 bytes text/plain blob "
609
+ "not decodable as an UTF-8 string"
610
+ ),
608
611
call ("Metadata: Creator = English speaking Wikipedia contributors" ),
609
612
call ("Metadata: Date = 2009-11-21" ),
610
613
call (
You can’t perform that action at this time.
0 commit comments