dnsdb_query.py: cleaned up exception raises

closes issue #15