mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Fix error condition in event cloning
This commit is contained in:
@@ -450,10 +450,8 @@ class Event(EventMixin, LoggedModel):
|
||||
if int(s.value) in tax_map:
|
||||
s.value = tax_map.get(int(s.value)).pk
|
||||
s.save()
|
||||
else:
|
||||
s.delete()
|
||||
except ValueError:
|
||||
s.delete()
|
||||
pass
|
||||
else:
|
||||
s.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user