diff options
| author | bwarsaw | 2003-04-19 21:07:39 +0000 |
|---|---|---|
| committer | bwarsaw | 2003-04-19 21:07:39 +0000 |
| commit | 94fbc6b3f3bce7af646ccb0cbce4d6f031079959 (patch) | |
| tree | 8472bf99ae08fdedb662206b5af98697b58e5e18 | |
| parent | 750ee33e8c088d9cd07fcc905ddf9989ecb6d3be (diff) | |
| download | mailman-94fbc6b3f3bce7af646ccb0cbce4d6f031079959.tar.gz mailman-94fbc6b3f3bce7af646ccb0cbce4d6f031079959.tar.zst mailman-94fbc6b3f3bce7af646ccb0cbce4d6f031079959.zip | |
quit(): It's possible that self.__conn hasn't been opened yet.
| -rw-r--r-- | Mailman/Handlers/SMTPDirect.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Mailman/Handlers/SMTPDirect.py b/Mailman/Handlers/SMTPDirect.py index da7e3eb2f..acaa77e22 100644 --- a/Mailman/Handlers/SMTPDirect.py +++ b/Mailman/Handlers/SMTPDirect.py @@ -77,6 +77,8 @@ class Connection: return results def quit(self): + if self.__conn is None: + return try: self.__conn.quit() except smtplib.SMTPException: |
