Remove ext-cal from requirements list (#349)

* Remove ext-cal from requirements list

* Fix the travis phpunit config
This commit is contained in:
Nabeel S
2019-08-08 12:50:32 -04:00
committed by GitHub
parent f6465bea58
commit ff6ba4c29a
5 changed files with 22 additions and 7 deletions

View File

@@ -2,8 +2,9 @@
namespace App\Contracts;
use Cache;
use Log;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Log;
/**
* Base class for implementing retrieving METARs
@@ -43,7 +44,7 @@ abstract class Metar
$raw_metar = Cache::remember($key, $cache['time'], function () use ($icao) {
try {
return $this->metar($icao);
} catch (\GuzzleHttp\Exception\GuzzleException $e) {
} catch (GuzzleException $e) {
Log::error('Error getting METAR: '.$e->getMessage(), $e->getTrace());
return '';
} catch (\Exception $e) {