No crash.
$ python example.py
Traceback (most recent call last):
File "/.../example.py", line 6, in <module>
sentry_sdk.last_event_id()
File "/.../sentry_sdk/api.py", line 343, in last_event_id
return Scope.last_event_id()
^^^^^^^^^^^^^^^^^^^^^
File "/.../sentry_sdk/scope.py", line 330, in last_event_id
return cls.get_isolation_scope()._last_event_id
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Scope' object has no attribute '_last_event_id'. Did you mean: 'last_event_id'?