python-omxplayer-wrapper icon indicating copy to clipboard operation
python-omxplayer-wrapper copied to clipboard

Meaningful error on immediate omxplayer death

Open willprice opened this issue 9 years ago • 1 comments

Feature Request: Exception on omxplayer spawn failure

Description

When omxplayer fails to spawn due to invalid command args or similar, a DBusConnectionError is raised which is very unhelpful, it doesn't indicate what the issue is, we should catch this and output a new error.

Example use case

# Raises error due to malformed `args` parameter (should be shell split)
OMXPlayer("blah.mp4", args=["-o hdmi --no-osd"])

willprice avatar Jan 06 '17 21:01 willprice

To actually capture a meaningful error message in this case, it might be needed to not redirect stdout as well, see #205.

matthijskooijman avatar Jun 16 '20 09:06 matthijskooijman