Skip to content

Commit

Permalink
Update base/workflow/R/run.write.configs.R
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Black <chris@ckblack.org>
  • Loading branch information
dlebauer and infotroph authored Dec 16, 2024
1 parent 07ec3d3 commit af15734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/workflow/R/run.write.configs.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ run.write.configs <- function(settings, write = TRUE, ens.sample.method = "unifo
posterior.files = rep(NA, length(settings$pfts)),
overwrite = TRUE) {
## Skip database connection if settings$database is NULL
if (write == FALSE) {
PEcAn.logger::logger.info("Database connection skipped: No database settings provided.")
if (!isTRUE(write)) {
PEcAn.logger::logger.info("Not writing this run to database, so database connection skipped")
con <- NULL # Set con to NULL to avoid errors in subsequent code
} else {
tryCatch({
Expand Down

0 comments on commit af15734

Please sign in to comment.