GeneratorExitGeneratorExit
Raised when a generator's close() method is called, allowing cleanup.
SyntaxErrorPython encountered invalid syntax that cannot be parsed.
The code contains a syntax error such as missing colons after if/for/def statements, unmatched parentheses/brackets, invalid characters, or using Python 3 syntax in Python 2. The parser cannot understand the code structure.
Check the line indicated in the traceback. Look for missing colons, unmatched brackets, or invalid characters. Use a linter like pylint or flake8. Pay attention to the caret (^) indicator showing where Python got confused.
if True
print("missing colon") # SyntaxErrorGeneratorExitRaised when a generator's close() method is called, allowing cleanup.
UnicodeTranslateErrorA Unicode translation operation failed for a specific character.
EnvironmentErrorAn alias for OSError. Exists for backward compatibility with Python 2.
django.core.exceptions.ImproperlyConfiguredDjango detected a misconfiguration in the project's settings.
json.JSONDecodeErrorThe JSON decoder could not parse the provided string as valid JSON.
ProcessLookupErrorThe specified process does not exist.