Skip to content

Commit

Permalink
Revert "Add default empty string for get"
Browse files Browse the repository at this point in the history
This reverts commit 8ef4ec9.
  • Loading branch information
HungNgien committed Jan 10, 2025
1 parent 73b9d7d commit 3df0266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pretix/eventyay_common/base_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def on_success(self, retval: Any, task_id: str, args: tuple, kwargs: dict) -> An
Returns:
Any: Result from parent class on_success method
"""
event = kwargs.get("event", {}).get("slug", "")
event = kwargs.get("event", {}).get("slug")
try:
event = Event.objects.get(slug=event)
event.settings.set("create_for", EventCreatedFor.BOTH.value)
Expand Down

0 comments on commit 3df0266

Please sign in to comment.