-
Type:
Bug
-
Status: Done (View Workflow)
-
Priority:
Normal
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
If a file has been ingested, the ingest.py super().runFile() returns None, when is then indexed to get the pfsConfig. That throws a TypeError which leaks out to a then puzzled human.
(Pdb) n TypeError: 'NoneType' object is not subscriptable > /software/devel/cpl/obs_pfs/python/lsst/obs/pfs/ingest.py(446)runFile() -> self.ingestPfsConfig(pfsConfigDir, hduInfoList[0], args) (Pdb) l 441 """ 442 import pdb; pdb.set_trace() 443 try: 444 hduInfoList = super().runFile(infile, registry, args) 445 pfsConfigDir = args.pfsConfigDir if args.pfsConfigDir is not None else os.path.dirname(infile) 446 -> self.ingestPfsConfig(pfsConfigDir, hduInfoList[0], args) 447 except Exception: 448 import traceback 449 traceback.print_exc() 450 raise 451 return hduInfoList