Index: trunk/ippToPsps/jython/batch.py
===================================================================
--- trunk/ippToPsps/jython/batch.py	(revision 31840)
+++ trunk/ippToPsps/jython/batch.py	(revision 31920)
@@ -47,5 +47,6 @@
         self.doc = doc
         self.fits = fits
-        self.header = self.fits.getPrimaryHeader()
+        if self.fits is not None:
+            self.header = self.fits.getPrimaryHeader()
 
         # set up logging
