I have a list part of an if clause:
if context and a in b :
If the list is empty I receive the following error:
ValueError: invalid literal for int() with base 10: ''
I can check if the list is empty with no issues with no errors using:
if not context:
But I need the vice-versa working. I tried also
if context is not None
but the same error. I don't understand why using not is working and without is not working.