Commit 5a0925ec9ef531b13ea75df95c5a281c911b9a05
1 parent
77ae3658
Exists in
master
and in
62 other branches
Set ImageType to empty when there is not this tag in dicom
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
invesalius/reader/dicom.py
... | ... | @@ -811,6 +811,10 @@ class Parser(): |
811 | 811 | data = self.data_image[str(0x008)][str(0x008)] |
812 | 812 | except(IndexError): |
813 | 813 | return [] |
814 | + # TODO: Check if set image type to empty is the right way of handling | |
815 | + # the cases where there is not this tag. | |
816 | + except KeyError: | |
817 | + return [] | |
814 | 818 | |
815 | 819 | if (data): |
816 | 820 | try: | ... | ... |