Skip to content

Commit

Permalink
Update csareader.py to correct style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
parneshraniga authored Jan 3, 2017
1 parent f83ed47 commit 4a73b36
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nibabel/nicom/csareader.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ def get_csa_header(dcm_data, csa_type='image'):
try:
tag = dcm_data[(0x29, element_no)]
return read(tag.value)
except (KeyError,CSAReadError):
except (KeyError, CSAReadError):
# The element could be missing due to anonymization
return None

return None


def read(csa_str):
Expand Down

0 comments on commit 4a73b36

Please sign in to comment.