diff --git a/app/Segment/CacheRepository.php b/app/Segment/CacheRepository.php index c561c719..a59f5525 100644 --- a/app/Segment/CacheRepository.php +++ b/app/Segment/CacheRepository.php @@ -44,7 +44,8 @@ class CacheRepository implements RepositoryInterface */ public function fetch() { - // We might not be setup yet. + $writeKey = null; + try { // Firstly, does the setting exist? if (null === ($writeKey = Setting::get('segment_write_key'))) {