YUM.py: Fix tracebacks from 00a15600

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>