Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Fix and Improve error handling #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

miracle2k
Copy link

No description provided.

@RickyCook
Copy link
Contributor

I'm so sorry that I missed this in my notifications! I'm fine with this if you add a couple of exceptions for pylint (broad-except, invalid-name)

@@ -197,7 +197,10 @@ def lookupAddress(self, name, timeout=None):

# We need to catch everything. Uncaught exceptian will make the server
# stop responding
except: # pylint:disable=bare-except
except Exception, e: # pylint:disable=bare-except
if type(e) != DomainError:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if isinstance(e, DomainError): would be better

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants