Index: trunk/ippScripts/scripts/camera_exp.pl
===================================================================
--- trunk/ippScripts/scripts/camera_exp.pl	(revision 19284)
+++ trunk/ippScripts/scripts/camera_exp.pl	(revision 19294)
@@ -159,5 +159,4 @@
 
 # XXX we perform astrometry iff photometry output exists
-my $chipObjects;
 my $chipObjectsExist = 0;
 foreach my $file (@$files) {
@@ -167,13 +166,17 @@
     # If there is only one chip, we use this name for the input to addstar
     # we expect the chip analysis stage to produce psphot output (cmf file) and two binned images
-    $chipObjects = $ipprc->filename("PSPHOT.OUTPUT", $file->{path_base}, $class_id);
+    my $chipObjects = $ipprc->filename("PSPHOT.OUTPUT", $file->{path_base}, $class_id);
+
+    # if any of the output chip photometry files exist, we can run psastro / addstar below
+    if ($ipprc->file_exists($chipObjects)) {
+        $chipObjectsExist = 1;
+    } else {
+	if ($verbose) { print "skipping $chipObjects (not found)\n"; }
+	next;
+    }
+
     print $list1File ($ipprc->filename("PPIMAGE.BIN1", $file->{path_base}, $class_id) . "\n");
     print $list2File ($ipprc->filename("PPIMAGE.BIN2", $file->{path_base}, $class_id) . "\n");
     print $list3File ($ipprc->file_resolve($chipObjects, 0) . "\n");
-
-    # if any of the output chip photometry files exist, we can run psastro / addstar below
-    if ($ipprc->file_exists($chipObjects)) {
-        $chipObjectsExist = 1;
-    }
 }
 close $list1File;
