Answer the question
In order to leave comments, you need to log in
How to fix AttributeError: __enter__ error?
Here is the part of my code where this error is:
while True:
if choice != 0:
with Thread(target=one) as onee:
onee.start()
for i in al:
with Thread(target=some, args=(i[0], al, )) as pr2:
pr2.start()
with Thread(target=one) as onee:
AttributeError: __enter__
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question