Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 2
    Please post the Full Traceback.. It helps understand the problem. Commented Apr 2, 2013 at 18:45
  • 1
    Are you iterating over x.contacted before this? Showing more code helps. Commented Apr 2, 2013 at 18:45
  • 3
    Please reduce your program to the shortest complete program that still demonstrates the error. Then copy-paste that program into your question. See SSCCE.org for more info. Commented Apr 2, 2013 at 18:47
  • 1
    We need more code to answer this usefully. Nowhere in this code do you iterate over x, so we're left to assume you're either iterating elsewhere, or else your error has nothing to do with the variable you're checking. If you don't provide the code needed to reproduce (or at least understand) your error, it's much harder to fix. Commented Apr 2, 2013 at 18:47
  • Added the full code and traceback Commented Apr 2, 2013 at 18:52