Skip to content

Commit 21c9e54

Browse files
committed
Added on_conflict_do_nothing to notifier database insert to handle duplicate entries gracefully. #3262
1 parent ce7ed6c commit 21c9e54

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bazarr/app/notifier.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def update_notifier():
3737

3838
database.execute(
3939
insert(TableSettingsNotifier)
40-
.values(notifiers_added))
40+
.values(notifiers_added)
41+
.on_conflict_do_nothing())
4142

4243

4344
def get_notifier_providers():

0 commit comments

Comments
 (0)