Skip to content

Commit

Permalink
OcrdFile: fix removing url
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored May 24, 2024
1 parent 4a5d9b3 commit e00f6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocrd_models/ocrd_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def url(self, url : Optional[str]) -> None:
"""
el_FLocat = self._el.find('mets:FLocat[@LOCTYPE="URL"]', NS)
if url is None:
if el_FLocat:
if el_FLocat is not None:
self._el.remove(el_FLocat)
return
if el_FLocat is None:
Expand Down

0 comments on commit e00f6e6

Please sign in to comment.