{"push_id":2024537749,"size":1,"distinct_size":1,"ref":"refs/heads/patch-1","head":"cdff1beb93890f8bb0ad0efffe6730ab33b2203e","before":"b2453a8b93a755e440356d408178e899f6b8ee29","commits":[{"sha":"cdff1beb93890f8bb0ad0efffe6730ab33b2203e","author":{"name":"Andras Lasso","email":"e8a00c1791bfbd8b459c95c5d0498918b2d715e1@queensu.ca"},"message":"Fixed local variable 'sec' referenced before assignment error\n\nWhen a file cannot be loaded (e.g., removed from disk) then multivolume importer plugin failed with this error:\r\n\r\n[DEBUG][Qt] 02.10.2017 23:22:13 [] (unknown:0) - Could not load  \"C:/Users/msliv/Downloads/dicom4miccai/DICOM4MICCAI-Data/QIN-HEADNECK-01-0024-PET/1.2.276.0.7230010.3.1.4.1334872705.15988.1505074246.702.dcm\" \r\nDCMTK says:  No such file or directory\r\n[DEBUG][Qt] 02.10.2017 23:22:13 [] (unknown:0) - SQL failed\r\n Bad SQL: INSERT OR REPLACE INTO TagCache VALUES(?,?,?)\r\n[DEBUG][Qt] 02.10.2017 23:22:13 [] (unknown:0) - Error text: attempt to write a readonly database Unable to fetch row\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) - Traceback (most recent call last):\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) -   File \"C:\\D\\S4R\\Slicer-build\\lib\\Slicer-4.7\\qt-scripted-modules\\DICOMLib\\DICOMWidgets.py\", line 718, in getLoadablesFromFileLists\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) -     loadablesByPlugin[plugin] = plugin.examine(fileLists)\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) -   File \"C:/D/S4R/Slicer-build/lib/Slicer-4.7/qt-scripted-modules/MultiVolumeImporterPlugin.py\", line 80, in examine\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) -     loadables += self.examineFiles(files)\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) -   File \"C:/D/S4R/Slicer-build/lib/Slicer-4.7/qt-scripted-modules/MultiVolumeImporterPlugin.py\", line 430, in examineFiles\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) -     mvNodes = self.initMultiVolumes(subseriesLists[key])\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) -   File \"C:/D/S4R/Slicer-build/lib/Slicer-4.7/qt-scripted-modules/MultiVolumeImporterPlugin.py\", line 646, in initMultiVolumes\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) -     tagValue = self.tm2ms(tagValueStr) # convert to ms\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) -   File \"C:/D/S4R/Slicer-build/lib/Slicer-4.7/qt-scripted-modules/MultiVolumeImporterPlugin.py\", line 615, in tm2ms\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) -     sec = sec+ssfrac\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) - UnboundLocalError: local variable 'sec' referenced before assignment\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) - Warning: Plugin failed: MultiVolumeImporterPlugin\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) -\r\n[CRITICAL][Stream] 02.10.2017 23:22:13 [] (unknown:0) - See python console for error message.\r\n[INFO][Stream] 02.10.2017 23:22:23 [] (unknown:0) - DICOM Plugin failed: local variable 'sec' referenced before assignment","distinct":true,"url":"https://api.github.com/repos/lassoan/MultiVolumeImporter/commits/cdff1beb93890f8bb0ad0efffe6730ab33b2203e"}]}
{"actor":{"display_login":"lassoan"}}