diff --git a/src/calibre/gui2/metadata/basic_widgets.py b/src/calibre/gui2/metadata/basic_widgets.py index 323fd55953..6ebc5851e6 100644 --- a/src/calibre/gui2/metadata/basic_widgets.py +++ b/src/calibre/gui2/metadata/basic_widgets.py @@ -1523,9 +1523,11 @@ class IdentifiersEdit(QLineEdit, ToMetadataMixin): text = d.text() if not text: return - vals = self.current_val - vals['isbn'] = text - self.current_val = vals + text = check_isbn(text) + if text: + vals = self.current_val + vals['isbn'] = text + self.current_val = vals # }}}