diff --git a/isso/ext/notifications.py b/isso/ext/notifications.py index ce2c6d8..3b54ca8 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -64,7 +64,7 @@ class SMTP(object): timeout=self.conf.getint('timeout')) if self.conf.get('security') == 'starttls': - if sys.version_info >= (3, 4): + if sys.version_info >= (3, 4) or (2, 7, 9) <= sys.version_info <= (3, 0): import ssl self.client.starttls(context=ssl.create_default_context()) else: