Kill unnecessary startup exceptions (#17161)

* Atomization

* dsaf

* Apply suggestions from code review

Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>

---------

Co-authored-by: FluffyGhost <FluffyGhost>
Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>
This commit is contained in:
Fluffy
2023-08-30 22:36:43 +00:00
committed by GitHub
co-authored by SleepyGemmy FluffyGhost <FluffyGhost>
parent 363f771fa4
commit dc3c5e7868
5 changed files with 60 additions and 0 deletions
+5
View File
@@ -170,6 +170,11 @@ var/datum/controller/subsystem/cargo/SScargo
//Loads the cargo data from JSON
/datum/controller/subsystem/cargo/proc/load_from_json()
var/list/cargoconfig = list()
if(!isfile("config/cargo.json"))
log_config("The file config/cargo.json was not found, cargo items will not be loaded.")
return
try
cargoconfig = json_decode(return_file_text("config/cargo.json"))
catch(var/exception/ej)
+5
View File
@@ -129,6 +129,11 @@ var/datum/controller/subsystem/chemistry/SSchemistry
/datum/controller/subsystem/chemistry/proc/load_secret_chemicals()
. = 0
var/list/chemconfig = list()
if(!isfile("config/secretchem.json"))
log_config("The file config/secretchem.json was not found, secret chemicals will not be loaded.")
return
try
chemconfig = json_decode(return_file_text("config/secretchem.json"))
catch(var/exception/e)