Code Monkey home page Code Monkey logo

Comments (8)

voxvici avatar voxvici commented on August 16, 2024

Is it possible to access Debug object?

from py3-validate-email.

manojr2k avatar manojr2k commented on August 16, 2024

i am also interested to know the above error handling , since my code not able to understand the error code for block ip

from py3-validate-email.

karolyi avatar karolyi commented on August 16, 2024

@voxvici you just have to simply use the validate_email_or_fail() function, which will raise an exception that you catch and the error message will be in the exception arguments.

from py3-validate-email.

reinhard-mueller avatar reinhard-mueller commented on August 16, 2024

@manojr2k @voxvici Out of curiosity, may I ask what you would consider the best behavior in the case of such an "Access denied" (or other messages about blacklisting or similar issues)?

Would it be sufficient if the result of the function was just None like in other cases where there is no verification possible (like mail server down, greylisting etc), and you can look at the debug log what was the reason for not being able to give a clear result? Or would you still need access to the error messages to programmatically react different to the various reasons that can lead to a None result? Or would you think an additional exception should be introduced saying "you're blacklisted"?

from py3-validate-email.

manojr2k avatar manojr2k commented on August 16, 2024

from py3-validate-email.

manojr2k avatar manojr2k commented on August 16, 2024

any update reinhard ?

from py3-validate-email.

reinhard-mueller avatar reinhard-mueller commented on August 16, 2024

@manojr2k sorry I don't think that I will have an implementation proposal in short time, I need to think more about this, but your feedback is appreciated as input for that.

from py3-validate-email.

voxvici avatar voxvici commented on August 16, 2024

@reinhard-mueller
apologizes for not answering been busy with work, I've found a workaround solution for the blacklist issue ideally a blacklist exception but I've read some of the @karolyi comments before and he was talking it's hard to know when the server actually is blacklisted? if I remember correctly. It would be nice to have an additional exception due to logging and knowing what is internally happening without having to access debug

EDIT right now I've seen the "e.error_messages will be a list of error messages" comment on one of the issues, missed that one. Great work and thank you for answering to issue and updating the module

from py3-validate-email.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.