Fix error handling bug

If current_process is a string it of course doesn't have the other stuff.
Merge pull request #158 from fedora-infra/fix-error-handling

Fix error handling bug