MemoryErrorMemoryError
The Python interpreter ran out of available memory.
Model.DoesNotExistA Django ORM query with .get() did not find a matching record.
You called Model.objects.get() with filters that did not match any database row. The record may not exist, the filter criteria may be wrong, or the data may have been deleted.
Use .filter().first() to return None instead of raising. Wrap .get() in try-except: try: obj = Model.objects.get(pk=id) except Model.DoesNotExist: handle_missing(). Use get_object_or_404() in views.
User.objects.get(id=999) # User.DoesNotExistMemoryErrorThe Python interpreter ran out of available memory.
ProcessLookupErrorThe specified process does not exist.
numpy ValueError: shape mismatchA numpy operation failed because the array shapes are incompatible.
GeneratorExitRaised when a generator's close() method is called, allowing cleanup.
requests.exceptions.HTTPErrorAn HTTP error response (4xx or 5xx) was received and raise_for_status() was called.
TypeError: unhashable typeA mutable object was used where a hashable (immutable) object is required, such as a dictionary key or set element.