Skip to content

do not show warnings on missing style name&title #990

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions owslib/map/wms111.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,6 @@ def __init__(self, elem, parent=None, children=None, index=0,
title = s.find('Title')
if name is None and title is None:
raise ValueError('%s missing name and title' % (s,))
if name is None or title is None:
warnings.warn('%s missing name or title' % (s,))
title_ = title.text if title is not None else name.text
name_ = name.text if name is not None else title.text
style = {'title': title_}
Expand Down
2 changes: 0 additions & 2 deletions owslib/map/wms130.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,6 @@ def __init__(self, elem, parent=None, children=None, index=0, parse_remote_metad
title = s.find(nspath('Title', WMS_NAMESPACE))
if name is None and title is None:
raise ValueError('%s missing name and title' % (s,))
if name is None or title is None:
warnings.warn('%s missing name or title' % (s,))
title_ = title.text if title is not None else name.text
name_ = name.text if name is not None else title.text
style = {'title': title_}
Expand Down
Loading