Index: trunk/ippToPsps/jython/batch.py
===================================================================
--- trunk/ippToPsps/jython/batch.py	(revision 32592)
+++ trunk/ippToPsps/jython/batch.py	(revision 32596)
@@ -54,15 +54,4 @@
         self.logger.debug("Batch class constructor")
 
-        # check FITS file is ok
-        if self.fits: 
-            self.header = self.fits.getPrimaryHeader()
-
-            # now check that the fits header is readable
-            if not self.header: return
-
-        # if no fits file, and this is not an IN batch, then get out of here
-        else:
-           if batchType != "IN": return
-
         # set up class variables
         self.id = id
@@ -72,4 +61,19 @@
         self.batchType = batchType;
         self.pspsVoTableFilePath = "../config/" + batchType + "/tables.vot"
+
+        # check FITS file is ok
+        if self.fits: 
+            self.header = self.fits.getPrimaryHeader()
+
+            # now check that the fits header is readable
+            if not self.header: 
+                logger.errorPair("Could not read FITS for id", "%d" % id)
+                return
+
+        # if no fits file, and this is not an IN batch, then get out of here
+        else:
+           if batchType != "IN": 
+               logger.errorPair("Could not read FITS for id", "%d" % id)
+               return
 
         # get info from config
