Caught attribute error while importing exception from DNS

Related to issue #19