Skip to content

Commit

Permalink
moved logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rjo100 committed Jul 7, 2023
1 parent 0fd61b0 commit 48871dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/migrations/0507_slugify_invalid_monitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def migrate_monitor_slugs(apps, schema_editor):
if monitor_slug == slugified:
continue

monitor.slug = slugified
try:
monitor.slug = slugified
monitor.save()
except IntegrityError:
# If there is a collision, delete the old monitor as the new one is receiving all check-ins
Expand Down

0 comments on commit 48871dc

Please sign in to comment.