Skip to content

Commit

Permalink
Skip empty stages
Browse files Browse the repository at this point in the history
  • Loading branch information
krischer committed Jan 8, 2014
1 parent ab34c1a commit 5fa6009
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions obspy/station/stationxml.py
Expand Up @@ -296,6 +296,8 @@ def _read_response(resp_element, _ns):
_read_instrument_polynomial(instrument_polynomial, _ns)
# Now read all the stages.
for stage in resp_element.findall(_ns("Stage")):
if not len(stage):
continue
response.response_stages.append(_read_response_stage(stage, _ns))
return response

Expand Down

0 comments on commit 5fa6009

Please sign in to comment.