From 57af88d47a7410e03f9c44294d716ba8665537a2 Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Wed, 9 Dec 2009 13:49:49 +0000 Subject: [PATCH] FIX: Bug open case other\iCatDanielaProjeto --- invesalius/reader/dicom.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/invesalius/reader/dicom.py b/invesalius/reader/dicom.py index 3a9350e..c2d1eb0 100644 --- a/invesalius/reader/dicom.py +++ b/invesalius/reader/dicom.py @@ -133,7 +133,11 @@ class Parser(): if ds.FindDataElement(tag): data = ds.GetDataElement(tag).GetValue() if (data): - return int(str(data)) + try: + value = int(str(data)) + except(ValueError): #Problem in the other\iCatDanielaProjeto + value = 0 + return value return "" def GetAcquisitionTime(self): -- libgit2 0.21.2