Actions
Bug #5869
closedsettings import insert error if the key does not exists any more
Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
06/28/2018
Due date:
% Done:
0%
Estimated time:
Affected Version:
Appion/Leginon 3.4
Show in known bugs:
No
Workaround:
Description
Traceback (most recent call last):
File "import_leginon_presets.py", line 120, in <module>
app.run()
File "import_leginon_presets.py", line 110, in run
self.insertAllData()
File "import_leginon_presets.py", line 33, in insertAllData
q = self.makequery(classname,kwargs)
File "/Users/acheng/myami/pyami/jsonfun.py", line 27, in makequery
q[realkey] = kwargs[key]
File "/Users/acheng/myami/sinedon/data.py", line 526, in setitem
super(Data, self).__setitem__(key, value)
File "/Users/acheng/myami/sinedon/newdict.py", line 72, in setitem
t = self.__types[key]
KeyError: u'film'
Actions