diff --git a/taggit/admin.py b/taggit/admin.py index 1ab26989..611efa16 100644 --- a/taggit/admin.py +++ b/taggit/admin.py @@ -90,6 +90,8 @@ def remove_orphaned_tags_action(self, request, queryset): try: orphaned_tags = Tag.objects.filter(taggit_taggeditem_items=None) count, _ = orphaned_tags.delete() - self.message_user(request, f"Successfully removed {count} orphaned tags.", level="success") + self.message_user( + request, f"Successfully removed {count} orphaned tags.", level="success" + ) except Exception as e: - self.message_user(request, f"An error occurred: {e}", level="error") \ No newline at end of file + self.message_user(request, f"An error occurred: {e}", level="error")