FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ews-coordinator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gilligan Lab for Epidemiology and Modelling
Wheat rusts
ews-coordinator
Commits
b8555cd1
Commit
b8555cd1
authored
3 years ago
by
J.W. Smith
Browse files
Options
Downloads
Patches
Plain Diff
fix: Align CLI email option with email logger
parent
f5036150
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Processor.py
+2
-1
2 additions, 1 deletion
Processor.py
with
2 additions
and
1 deletion
Processor.py
+
2
−
1
View file @
b8555cd1
...
...
@@ -35,6 +35,7 @@ import sys
from
flagdir
import
jobStatus
# created by jws52
# submodules of this project
import
BufferingSMTPHandler
import
EnvSuitPipeline
as
esp
import
NAMEPreProcessor
as
npp
import
ProcessorComponents
...
...
@@ -275,7 +276,7 @@ def parse_and_check_args(todayString):
if
not
args
.
live
:
# remove the log handler that would send emails
logger
.
handlers
=
[
h
for
h
in
logger
.
handlers
if
not
isinstance
(
h
,
logging
.
handlers
.
SMTPHandler
)]
logger
.
handlers
=
[
h
for
h
in
logger
.
handlers
if
not
isinstance
(
h
,
BufferingSMTPHandler
.
Buffering
SMTPHandler
)]
if
not
isinstance
(
args
.
config_paths
,
list
):
logger
.
error
(
'
Expecting a list of config paths
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment