Skip to content

Commit

Permalink
Fix for repositories not reachable, fixes getgrav#345
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviocopes committed Oct 6, 2015
1 parent 9ae506a commit e593381
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions system/src/Grav/Common/GPM/GPM.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ class GPM extends Iterator
public function __construct($refresh = false, $callback = null)
{
$this->installed = new Local\Packages();
$this->repository = new Remote\Packages($refresh, $callback);
$this->grav = new Remote\Grav($refresh, $callback);
try {
$this->repository = new Remote\Packages($refresh, $callback);
$this->grav = new Remote\Grav($refresh, $callback);
} catch (\Exception $e) {
}
}

/**
Expand Down

0 comments on commit e593381

Please sign in to comment.