Commit 57af88d47a7410e03f9c44294d716ba8665537a2
1 parent
0bc27bcb
Exists in
master
and in
6 other branches
FIX: Bug open case other\iCatDanielaProjeto
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
invesalius/reader/dicom.py
... | ... | @@ -133,7 +133,11 @@ class Parser(): |
133 | 133 | if ds.FindDataElement(tag): |
134 | 134 | data = ds.GetDataElement(tag).GetValue() |
135 | 135 | if (data): |
136 | - return int(str(data)) | |
136 | + try: | |
137 | + value = int(str(data)) | |
138 | + except(ValueError): #Problem in the other\iCatDanielaProjeto | |
139 | + value = 0 | |
140 | + return value | |
137 | 141 | return "" |
138 | 142 | |
139 | 143 | def GetAcquisitionTime(self): | ... | ... |