Fix error because exception class does not exist

When a hammer command fails, it complains about the exception class not existing.
This was observed using product subcommand.  See referenced pull-requests.