Skip to content

Commit 10aaa88

Browse files
authored
Fix dictionary key check for smtp credentials
1 parent cd8f5fd commit 10aaa88

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
#v25.3.1
4+
5+
- Adjust email_destination TaskHandler to allow use of TLS/credentials to be optional, and set default port to 587
6+
- Adjust email_destination protocol schema to ensure that smtp_server and sender are set
7+
38
# v25.3.0
49

510
- Add ignore_errors=True to problematic .gnupg removal

src/opentaskpy/remotehandlers/email.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def push_files_from_worker(
139139
smtp.starttls()
140140

141141
# Authenticate (if credentials specified)
142-
if self.protocol_vars["credentials"]:
142+
if "credentials" in self.protocol_vars:
143143
smtp.login(
144144
self.protocol_vars["credentials"]["username"],
145145
self.protocol_vars["credentials"]["password"],

0 commit comments

Comments
 (0)