Skip to content

Commit

Permalink
Commented out on.exit statements, sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
mvankessel-EMC committed Aug 23, 2023
1 parent 9912cfc commit d9d9bd8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions R/Viewer.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ uploadExportedResults <- function(connectionDetails,
ensureInstalled("ResultModelManager")
connection <- DatabaseConnector::connect(connectionDetails)

tryCatch({
on.exit(DatabaseConnector::disconnect(connection), add = TRUE, after = TRUE)
}, error = function(e) {
message(e)
})
# tryCatch({
# on.exit(DatabaseConnector::disconnect(connection), add = TRUE, after = TRUE)
# }, error = function(e) {
# message(e)
# })

if (!append) {
# Create tables
Expand Down Expand Up @@ -142,11 +142,11 @@ uploadExportedResults <- function(connectionDetails,
dropTableIfExists = FALSE,
createTable = !append
)
tryCatch({
on.exit(unlink(databaseIdentifierFile), add = TRUE, after = TRUE)
}, error = function(e) {
message(e)
})
# tryCatch({
# on.exit(unlink(databaseIdentifierFile), add = TRUE, after = TRUE)
# }, error = function(e) {
# message(e)
# })
# Upload results
ResultModelManager::uploadResults(
connection = connection,
Expand Down

0 comments on commit d9d9bd8

Please sign in to comment.