Commit 31c791849101b3a2c8b8284d0635b7d7cdf2e0ea
1 parent
ceea67fa
Exists in
master
and in
5 other branches
FIX: Fixed problem open melanix case
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
invesalius/reader/dicom.py
... | ... | @@ -720,7 +720,11 @@ class Parser(): |
720 | 720 | |
721 | 721 | Critical DICOM tag (0x0008, 0x0008). Cannot be editted. |
722 | 722 | """ |
723 | - data = self.data_image['0008']['0008'] | |
723 | + try: | |
724 | + data = self.data_image['0008']['0008'] | |
725 | + except(IndexError): | |
726 | + return [] | |
727 | + | |
724 | 728 | if (data): |
725 | 729 | try: |
726 | 730 | return data.split('\\') | ... | ... |