Giter Club home page Giter Club logo

Comments (4)

alexmojaki avatar alexmojaki commented on June 26, 2024

I know it looks weird but I ran into this too recently, os.getcwd() itself needs to open some file under the hood, I don't know why. Check if it works on its own?

from better-exceptions.

ram-bv avatar ram-bv commented on June 26, 2024

Damn Alex, are you stalking me? ;)

This is my work account, by the way.

I confirmed os.getcwd() works on its own. It's curious that it would fail when called inside abspath. In any case I'd recommend that even if PyPy or the standard library have bugs in that code, that better-exception should degrade gracefully when they happen.

from better-exceptions.

Qix- avatar Qix- commented on June 26, 2024

We can wrap it, though it's a matter of what to do in lieu of the existing logic if an exception is raised.

from better-exceptions.

ram-bv avatar ram-bv commented on June 26, 2024

I'd show something like SOURCE UNAVAILABLE for those frames, anything besides failing.

from better-exceptions.

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.