Skip to content

Commit

Permalink
Fix drush-ops#2405. Handle exception when determining home dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman authored and mikeker committed Aug 4, 2017
1 parent fc6e036 commit 4c464c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/environment.inc
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,11 @@ function drush_is_local_host($host) {
* Return the user's home directory.
*/
function drush_server_home() {
return Path::getHomeDirectory();
try {
return Path::getHomeDirectory();
} catch (Exception $e) {
return NULL;
}
}

/**
Expand Down

0 comments on commit 4c464c3

Please sign in to comment.