Giter Club home page Giter Club logo

Comments (6)

rlizzo avatar rlizzo commented on September 27, 2024 1

ok. all these changes are merged in #16

from hangar-py.

rlizzo avatar rlizzo commented on September 27, 2024 1

@hhsecond i'll leave it to you to close this issue when you feel it is appropriate. It's good for me right now.

from hangar-py.

hhsecond avatar hhsecond commented on September 27, 2024

Hey @rlizzo, Have you got a chance to run through this? As far as I could think, raising an exception in all the cases (even for minor issues) is the best we could do unless we don't want to put the whole stack trace onto user's CLI (we could still use exception hooks to suppress those messages if we want). Or do you have some other reasons to use the bool return instead of raising exceptions that I might be missing?

from hangar-py.

rlizzo avatar rlizzo commented on September 27, 2024

Hey @hhsecond, sorry I needed a few days to really think about this.

I think you're completely right. We should be just raising exceptions for this. I'd like to stick to the Python standard library exception classes for now. As far as the stack traces go, they might print alot to the screen, but I think it's OK for now (if anything it'll help us debug any user bug reports); getting pretteir tracebacks is a problem for another time. If we just log to error to the console before raising the exception, it should be OK for now - we just need to have fairly informative error messages.

I'm putting together a PR for this right now, should be merged before I go to bed tonight. sorry if this was holding you up at all!

from hangar-py.

hhsecond avatar hhsecond commented on September 27, 2024

Hey @rlizzo, no worries and thanks a lot for taking this for me. I even had started this in a separate branch but then thought of discussing with you about the design. I am keeping this issue opened at least until I finish both local and remote testing. I'll open more PRs if required in the future given that now I know what should be the way forward for exceptions.

from hangar-py.

rlizzo avatar rlizzo commented on September 27, 2024

Closing due to inactivity

from hangar-py.

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.