Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F26142
project_init.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
epriestley
Nov 30 2012, 3:57 PM
2012-11-30 15:57:06 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
project_init.diff
View Options
diff --git a/src/workflow/ArcanistBaseWorkflow.php b/src/workflow/ArcanistBaseWorkflow.php
index f53936c..4a40979 100644
--- a/src/workflow/ArcanistBaseWorkflow.php
+++ b/src/workflow/ArcanistBaseWorkflow.php
@@ -1408,11 +1408,20 @@ abstract class ArcanistBaseWorkflow {
if (!$project_id) {
$this->projectInfo = array();
} else {
- $this->projectInfo = $this->getConduit()->callMethodSynchronous(
- 'arcanist.projectinfo',
- array(
- 'name' => $project_id,
- ));
+ try {
+ $this->projectInfo = $this->getConduit()->callMethodSynchronous(
+ 'arcanist.projectinfo',
+ array(
+ 'name' => $project_id,
+ ));
+ } catch (ConduitClientException $ex) {
+ // TODO: Implement a proper query method that doesn't throw on
+ // project not found. We just swallow this because some pathways,
+ // like Git with uncommitted changes in a repository with a new
+ // project ID, may attempt to access project information before
+ // the project is created.
+ return array();
+ }
}
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/zrqiqatn7f6ph35n5cqs
Default Alt Text
project_init.diff (1 KB)
Attached To
Mode
P617 project_init.diff
Attached
Detach File
Event Timeline
Log In to Comment