From 8219b51e47ec6fe90db1da692ffb11d654e4d37b Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 13 Jul 2020 14:22:00 +0200 Subject: [PATCH] Skip error fix https://github.com/firefly-iii/firefly-iii/issues/3559 --- app/Support/System/GeneratesInstallationId.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Support/System/GeneratesInstallationId.php b/app/Support/System/GeneratesInstallationId.php index 64314cd57c..15ea57d3e7 100644 --- a/app/Support/System/GeneratesInstallationId.php +++ b/app/Support/System/GeneratesInstallationId.php @@ -24,6 +24,7 @@ declare(strict_types=1); namespace FireflyIII\Support\System; +use FireflyIII\Exceptions\FireflyException; use Log; use Ramsey\Uuid\Uuid; @@ -37,7 +38,12 @@ trait GeneratesInstallationId */ protected function generateInstallationId(): void { + try { $config = app('fireflyconfig')->get('installation_id', null); + } catch(FireflyException $e) { + Log::info('Could not create or generate installation ID. Do not continue.'); + return; + } // delete if wrong UUID: if (null !== $config && 'b2c27d92-be90-5c10-8589-005df5b314e6' === $config->data) {