Need to use this way of extracting an exception - https://github.com/apache/libcloud/blob/trunk/libcloud/utils/misc.py#L68

Otherwise it won't work with all the supported Python versions.