Giter VIP home page Giter VIP logo

Comments (5)

hayesgb avatar hayesgb commented on May 27, 2024 1

The only error I have seen in this block is a ResourceNotFound error. If we get back something else, we should probably raise a RuntimeError in this block, and propagate the error message {e} back to the user.

from adlfs.

andersbogsnes avatar andersbogsnes commented on May 27, 2024

I'd be happy to work on a PR if there is an agreement that this is an issue 😄

from adlfs.

hayesgb avatar hayesgb commented on May 27, 2024

Thanks @andersbogsnes . Agree this is an issue, and if you have some time to work on it that would be great.

However, I added one unit test (test_ls_0), which calls fs.ls("."), and if I
update the ls() method to simply allow the Exception to pass through, but this then causes some of the glob tests to fail. For the moment, I will leave the FileNotFoundError in place, but I've propagated this up to master with the test marked as xfail.

from adlfs.

andersbogsnes avatar andersbogsnes commented on May 27, 2024

Ran into some more issues with exceptions here: https://github.com/dask/adlfs/blob/07aabb7beea34b640c75991f07142154f8f39b3c/adlfs/core.py#L754

(It's trying to raise a string, which errors)

I'm working on a PR in my downtime, but was wondering if there's a need to introduce an exception hierarchy of some sort. Does fsspec have an opinion on that? What type of exception should be raised here?

from adlfs.

hayesgb avatar hayesgb commented on May 27, 2024

Closed on PR#72

from adlfs.

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.