Catch correct exception

The CalledProcessError exception belongs to the
subprocess module.

My previous pull request was faulty. Sorry for that. Now it works as expected.