You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**suggestion:** Consider adding a guard clause to handle cases where actor['type'] might not exist
The current code might raise a KeyError if actor exists but doesn't have a 'type' key. Consider using: if actor and actor.get('type', '').lower() not in allowed_actor_types:
if actor and actor.get("type", "").lower() not in allowed_actor_types:
The current code might raise a KeyError if actor exists but doesn't have a 'type' key. Consider using:
if actor and actor.get('type', '').lower() not in allowed_actor_types:
Originally posted by @sourcery-ai[bot] in #89 (comment)
The text was updated successfully, but these errors were encountered: