Compat: Fix traceback

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