Get user first and check for None before accessing .settings attribute. Returns None gracefully instead of crashing with AttributeError.
Get user first and check for None before accessing .settings attribute. Returns None gracefully instead of crashing with AttributeError.