Cover also some errors
This commit is contained in:
parent
066864343f
commit
61daa109a1
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,8 @@ def main():
|
||||||
state = State.renewed
|
state = State.renewed
|
||||||
elif "not due for renewal" in line:
|
elif "not due for renewal" in line:
|
||||||
state = State.no_action
|
state = State.no_action
|
||||||
|
elif "unexpected error occurred" in line:
|
||||||
|
state = State.error
|
||||||
|
|
||||||
text = "\n".join(text)
|
text = "\n".join(text)
|
||||||
subject = SUBJECT.format(str(state))
|
subject = SUBJECT.format(str(state))
|
||||||
|
|
Loading…
Add table
Reference in a new issue