Fix bare except statements for expected ImportErrors

This commit is contained in:
Daniel Hahler authored and Scott Kitterman committed 2018-06-16 17:28:02 -04:00
1 parent 229ac42db9
commit 0338aedcc6
1 file changed
+3 -3
+3 -3
View File
@@ -41,14 +41,14 @@ import time
# only needed for arc
try:
from authres import AuthenticationResultsHeader
except:
except ImportError:
pass
# only needed for ed25519 signing/verification
try:
import nacl.signing
import nacl.encoding
except:
except ImportError:
pass
from dkim.canonicalization import (
@@ -68,7 +68,7 @@ from dkim.crypto import (
)
try:
from dkim.dnsplug import get_txt
except:
except ImportError:
def get_txt(s):
raise RuntimeError("DKIM.verify requires DNS or dnspython module")
from dkim.util import (