Your indentation is goofed, and you’ve mixed tabs and spaces. Run the script with python -tt
to verify.
More Related Contents:
- How can I use threading in Python?
- threading.Timer – repeat function every ‘n’ seconds
- Are lists thread-safe?
- Freezing/Hanging tkinter GUI in waiting for the thread to complete
- Python: execute cat subprocess in parallel
- Daemon Threads Explanation
- AttributeError: module ‘time’ has no attribute ‘clock’ in Python 3.8
- AttributeError: ‘Tensor’ object has no attribute ‘numpy’
- A very simple multithreading parallel URL fetching (without queue)
- The right way to limit maximum number of threads running at once?
- Why is Tkinter widget stored as None? (AttributeError: ‘NoneType’ object …)(TypeError: ‘NoneType’ object …) [duplicate]
- What is causing this AttributeError?
- Thread vs. Threading
- python threading blocks
- Python – appending to same file from multiple threads
- Cancellable threading.Timer in Python
- TypeError in Threading. function takes x positional argument but y were given
- multiprocessing.pool.MaybeEncodingError: ‘TypeError(“cannot serialize ‘_io.BufferedReader’ object”,)’
- Pyqt5 qthread + signal not working + gui freeze
- How to pause and resume a thread using the threading module?
- How to use threading in Python?
- What is the use of join() in threading?
- Queue.Queue vs. collections.deque
- Return value from thread
- What causes `None` results from BeautifulSoup functions? How can I avoid “AttributeError: ‘NoneType’ object has no attribute…” with BeautifulSoup?
- How to start threads at the same time in Python [duplicate]
- Restarting a thread in Python
- How to obtain a Thread id in Python?
- After `x = x.y()`, why did `x` become `None` instead of being modified (possibly causing “AttributeError: ‘NoneType’ object has no attribute”)?
- DataFrame object has no attribute append