Skip to content

Commit cdf7ddf

Browse files
committed
Add note on Prefs.get() call vs. dot prefix
1 parent 378cf4b commit cdf7ddf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/imcflibs/imagej/misc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ def send_notification_email(
219219
"""
220220

221221
# Retrieve sender email and SMTP server from preferences
222+
# NOTE: the leading dot "." has to be omitted in the `Prefs.get()` call,
223+
# despite being present in the `IJ_Prefs.txt` file!
222224
sender = prefs.Prefs.get("imcf.sender_email", "").strip()
223225
server = prefs.Prefs.get("imcf.smtpserver", "").strip()
224226

0 commit comments

Comments
 (0)