Skip to content
Snippets Groups Projects
Unverified Commit 1b361ec2 authored by Romain's avatar Romain
Browse files

Don't set a default value when retrieving Xmlns key for SVG metadata

parent 58a1563a
No related branches found
No related tags found
1 merge request!88Fix KeyError for SVG without xmlns tag
...@@ -41,7 +41,7 @@ class SVGParser(exiftool.ExiftoolParser): ...@@ -41,7 +41,7 @@ class SVGParser(exiftool.ExiftoolParser):
# The namespace is mandatory, but only the …/2000/svg is valid. # The namespace is mandatory, but only the …/2000/svg is valid.
ns = 'http://www.w3.org/2000/svg' ns = 'http://www.w3.org/2000/svg'
if meta.get('Xmlns', ns) == ns: if meta.get('Xmlns') == ns:
meta.pop('Xmlns') meta.pop('Xmlns')
return meta return meta
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment