aboutsummaryrefslogtreecommitdiffhomepage
path: root/Digitigrade/Job/PushObject.php
diff options
context:
space:
mode:
Diffstat (limited to 'Digitigrade/Job/PushObject.php')
-rw-r--r--Digitigrade/Job/PushObject.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Digitigrade/Job/PushObject.php b/Digitigrade/Job/PushObject.php
index c3d7210..0278eb5 100644
--- a/Digitigrade/Job/PushObject.php
+++ b/Digitigrade/Job/PushObject.php
@@ -3,6 +3,7 @@ namespace Digitigrade\Job;
use Digitigrade\Exception\AuthException;
use Digitigrade\Exception\EndpointMissingException;
+use Digitigrade\HttpResponseStatus\PolicyRejected;
use Digitigrade\Job;
use Digitigrade\Logger;
use Digitigrade\Model\Instance;
@@ -38,6 +39,9 @@ class PushObject extends Job {
// start auth now and hopefully by the next retry we'll be able to
$instance->beginOutboundAuth();
throw $e;
+ } catch (PolicyRejected $e) {
+ $log->warning("can't push to $instance->domain because a policy rejected it. giving up");
+ // and don't throw again, pretty much same reasoning as above
}
}
} \ No newline at end of file