Code Monkey home page Code Monkey logo

Comments (2)

ansarid avatar ansarid commented on May 31, 2024

@destantraeger I don't see if target[0] == None: in any of the L2_color_target.py code. Is this custom? If so, the issue is that you are trying to fetch a value from a None type using an index value.

Here's a simplification of what you are attempting to show why it is wrong.

array = None
if array[0] == None:
    # do something.
    pass

Running it creates this output:

Traceback (most recent call last):
  File "issue50example.py", line 2, in <module>
    if array[0] == None:
TypeError: 'NoneType' object is not subscriptable

This is because there is no index 0 in the variable array because it is currently set to None. The None type is not a subscribable type (Cannot be addressed using an index value).

from scuttle.

ansarid avatar ansarid commented on May 31, 2024

@destantraeger Has this issue been solved? If I do not get a response within the next day I will close this issue. If this issue has not been resolved, please let me know. If I close this issue and the issue has not been resolved please let me know and I will reopen the issue.

from scuttle.

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.