cwtags #2971539 give a nice error message when a simple tag is used as context manager [validation pending]

with div(id=42):
   #     ...

Yields an obscure "AttributeError: 'simpletag' object has no attribute '__exit__'"

Instead, let's propose:

"TypeError: Did you forget to give a callable in first position ?"

prioritynormal
typeenhancement
done in1.0.0
load0.100
load left0.000
closed by#655106d58b43 give a more understandable error message on context manager misuse (closes #2971539)
patchgive a more understandable error message on context manager misuse (closes #2971539) [applied]