Code Monkey home page Code Monkey logo

Comments (6)

bwrsandman avatar bwrsandman commented on August 17, 2024

His @OSguard, could you post more of the traceback?
I would like to know what code calls search() in this instance.

It sounds like search was called with an int in place of the domain parameter.

from server-tools.

eLBati avatar eLBati commented on August 17, 2024

More info at https://bugs.launchpad.net/server-env-tools/+bug/1207671

from server-tools.

OSguard avatar OSguard commented on August 17, 2024

thanks is the same bug. i should check with google next time first.

from server-tools.

bwrsandman avatar bwrsandman commented on August 17, 2024
            if domain[0] == 'model_id' and domain[2]\
                    and type(domain[2]) != list:
                model_domain += [(
                    'model_id', 'in', map(int, domain[2][1:-1].split(',')))]
            else:
                model_domain.append(domain)

type(domain[2]) != list followed by domain[2][1:-1]
I guess it makes an assumption that domain[2] is a str, but in some cases, it's an int.

Is it possible that domain[:3] == ('model_id', '=', some_int)?
EDIT: just read the example and yes it is.

A saner way of checking would be to replace and type(domain[2]) != list by and type(domain[2]) is str

from server-tools.

bwrsandman avatar bwrsandman commented on August 17, 2024

Damnit, sorry. I commited directly instead of a PR because I have write access...

from server-tools.

bwrsandman avatar bwrsandman commented on August 17, 2024

There. Two PRs which should solve the issue, though I didn't test.

from server-tools.

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.