|
@@ -764,7 +764,13 @@ class imageBrowserLogic(ScriptedLoadableModuleLogic):
|
|
respJSON=self.db.modifyRows('insert',sList['project'],
|
|
respJSON=self.db.modifyRows('insert',sList['project'],
|
|
sList['schema'],sList['query'],[outRow])
|
|
sList['schema'],sList['query'],[outRow])
|
|
print('Updating {}: {}/{}'.format(sList['project'],sList['schema'],sList['query']))
|
|
print('Updating {}: {}/{}'.format(sList['project'],sList['schema'],sList['query']))
|
|
- outRow=respJSON['rows'][0]
|
|
|
|
|
|
+ try:
|
|
|
|
+ outRow=respJSON['rows'][0]
|
|
|
|
+ except KeyError:
|
|
|
|
+ print(respJSON)
|
|
|
|
+ raise KeyError
|
|
|
|
+
|
|
|
|
+
|
|
#print(outRow)
|
|
#print(outRow)
|
|
|
|
|
|
#construct file name with known key
|
|
#construct file name with known key
|