Skip to content

Commit faf4796

Browse files
authored
Remove return in finally (#188)
1 parent 858c920 commit faf4796

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

checkdmarc/smtp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ def test_tls(
123123
server.close()
124124
except Exception as e:
125125
logging.debug(e)
126-
finally:
127-
return tls
126+
return tls
128127

129128
except socket.gaierror:
130129
error = "DNS resolution failed"

0 commit comments

Comments
 (0)