From 3e8170b34fa6157dc4ce4e5cfcbfbd8160cd4d24 Mon Sep 17 00:00:00 2001 From: Jack Baron Date: Fri, 22 Jul 2022 17:50:54 +0100 Subject: [PATCH] ignore file not found errors --- Server/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Server/Program.cs b/Server/Program.cs index a66d887..7eb7674 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -49,6 +49,10 @@ async Task LoadShines() if (loadedShines is not null) shineBag = loadedShines; } + catch (FileNotFoundException) + { + // Ignore + } catch (Exception ex) { consoleLogger.Error(ex);