Skip to content

Commit

Permalink
nf-core utils: fix langserver warnings (#7071)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels authored Nov 24, 2024
1 parent 38c5340 commit 1b89f75
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions subworkflows/nf-core/utils_nfcore_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ def attachMultiqcReport(multiqc_report) {
}
}
}
catch (Exception all) {
catch (Exception msg) {
log.debug(msg)
if (multiqc_report) {
log.warn("[${workflow.manifest.name}] Could not attach MultiQC report to summary email")
}
Expand Down Expand Up @@ -358,7 +359,9 @@ new org.codehaus.groovy.GroovyException('Send plaintext e-mail, not HTML')
['sendmail', '-t'].execute() << sendmail_html
log.info("-${colors.purple}[${workflow.manifest.name}]${colors.green} Sent summary e-mail to ${email_address} (sendmail)-")
}
catch (Exception all) {
catch (Exception msg) {
log.debug(msg)
log.debug("Trying with mail instead of sendmail")
// Catch failures and try with plaintext
def mail_cmd = ['mail', '-s', subject, '--content-type=text/html', email_address]
mail_cmd.execute() << email_html
Expand Down

0 comments on commit 1b89f75

Please sign in to comment.