8000 Do not use Exception.message, use str(Exception) instead · Powercoder64/ffmpeg-python@87a168a · GitHub
[go: up one dir, main page]

Skip to content

Commit 87a168a

Browse files
committed
Do not use Exception.message, use str(Exception) instead
1 parent 2fff94a commit 87a168a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffmpeg/tests/test_ffmpeg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,5 +365,5 @@ def test_ffprobe():
365365
def test_ffprobe_exception():
366366
with pytest.raises(ffmpeg.ProbeException) as excinfo:
367367
ffmpeg.probe(BOGUS_INPUT_FILE)
368-
assert excinfo.value.message == 'ffprobe error'
368+
assert str(excinfo.value) == 'ffprobe error'
369369
assert 'No such file or directory' in excinfo.value.stderr_output

0 commit comments

Comments
 (0)
0