minor updates to the previous patch

- first determine whether isso.conf.get("general", "host") is a string or a
list of strings, then generate the link.
- thanks to @blatinier for pointing out the problem with the previous
patch
pull/406/head
Yuchen Pei 6 years ago
parent b85d8ec961
commit 26f1e61e49

@ -37,7 +37,12 @@ class SMTP(object):
self.isso = isso
self.conf = isso.conf.section("smtp")
self.general_host = isso.conf.get("general", "host")
gh = isso.conf.get("general", "host")
if type(gh) == str:
self.general_host = gh
else: #gh is a list
self.general_host = gh[0]
# test SMTP connectivity
try:

Loading…
Cancel
Save