We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4796a04 commit 73fde6cCopy full SHA for 73fde6c
roundup/anypy/http_.py
@@ -2,7 +2,7 @@
2
# Python 3+
3
from http import client, server
4
server.DEFAULT_ERROR_MESSAGE
5
-except:
+except (ImportError, AttributeError):
6
# Python 2.5-2.7
7
import httplib as client
8
import BaseHTTPServer as server
0 commit comments