title: Python - Exception in thread Thread-1 (in __bootstrap_inner)
body: <p>I have built a python script that manages a bunch of different things for my pool. I have been adding more functions and playing with some timeouts on my Raspberry Pi that is running everything. Today I started getting this error:</p>
  
  <pre><code>Exception in thread Thread-1:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
  self.run()
    File "/usr/lib/python2.7/threading.py", line 1082, in run
  self.function(*self.args, **self.kwargs)
  TypeError: 'str' object is not callable
  </code></pre>
  
  <p>So I started reading up on the last part (TypeError: 'str" object is not callable and figured I must have used it as a variable and it was interfering with the built-in str function. So I looked for every single instance if str in my code I could find (1300 lines) and this is all that I have found, so now I am stumped as to what could actually be causing the problem (shortened to show where the str is:</p>
  
  <pre><code>1) logger.info("Notify socket = {0}".format(str(s_adr)))
  2) ph_value = str(line)
  3)"/input/post.json?&amp;node=" + str(pooldb.ph_node)
  4) orp_value = str(line2)
  5)"/input/post.json?&amp;node=" + str(pooldb.orp_node)
  6) current_military_time = int(datetime.datetime.now().strftime('%H%M'))
  </code></pre>
  
  <p>That is it, in 1300+ lines of code those are the only instances of 'str' that I can find and none of them are variables so I am confused as to what is causing the error.</p>
  
  <p>Any ideas would be greatly appreciated.</p>
  
  <p>Thanks</p>