Skip to content

Commit 56990be

Browse files
Your Namealphatownsman
authored andcommitted
minor fixes
1 parent 66203d7 commit 56990be

File tree

5 files changed

+407
-372
lines changed

5 files changed

+407
-372
lines changed

catalog/migrations/0001_initial_0_11.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ class Migration(migrations.Migration):
461461
("cubn", "CUBN"),
462462
("isrc", "ISRC"),
463463
("gtin", "GTIN UPC EAN"),
464+
("oclc", "OCLC Number"),
464465
("rss", "RSS Feed URL"),
465466
("imdb", "IMDb"),
466467
("tmdb_tv", "TMDB TV Series"),
@@ -570,6 +571,7 @@ class Migration(migrations.Migration):
570571
("cubn", "CUBN"),
571572
("isrc", "ISRC"),
572573
("gtin", "GTIN UPC EAN"),
574+
("oclc", "OCLC Number"),
573575
("rss", "RSS Feed URL"),
574576
("imdb", "IMDb"),
575577
("tmdb_tv", "TMDB TV Series"),

journal/models/mark.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from functools import cached_property
33
from typing import Any, Iterable, Sequence
44

5+
from django.db import IntegrityError
56
from django.db.models import F
67
from django.utils import timezone
78
from django.utils.translation import gettext_lazy as _
@@ -293,7 +294,7 @@ def update(
293294
log_entry.timestamp = created_time
294295
try:
295296
log_entry.save(update_fields=["timestamp"])
296-
except Exception:
297+
except IntegrityError:
297298
dup_log = (
298299
ShelfLogEntry.objects.filter(
299300
owner_id=log_entry.owner_id,

0 commit comments

Comments
 (0)