summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Pugh2018-03-27 01:39:56 (GMT)
committerJon Pugh2018-03-27 01:39:56 (GMT)
commiteb50128d79df5e46d68523408c6ddb4af71704ca (patch)
tree82ccdc45720c2002b2db207d05a93c42299e71a6
parente380bd4a107c2b7a9e3378c442b571b74512abe4 (diff)
Use a try/catch so we don't get an exception if the context name doesn't exist, which happens in the save command.
-rw-r--r--src/Provision/Provision.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Provision/Provision.php b/src/Provision/Provision.php
index 3dd8883..6b3c15f 100644
--- a/src/Provision/Provision.php
+++ b/src/Provision/Provision.php
@@ -156,8 +156,10 @@ class Provision implements ConfigAwareInterface, ContainerAwareInterface, Logger
$this->loadAllContexts();
- if ($input->activeContextName) {
+ try {
$this->activeContext = $this->getContext($input->activeContextName);
+ } catch (\Exception $e) {
+
}
}