We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad09bf6 commit ba640e8Copy full SHA for ba640e8
pytest_flask/fixtures.py
@@ -6,8 +6,9 @@
6
import socket
7
8
try:
9
- from urllib2 import urlopen
+ from urllib2 import URLError, urlopen
10
except ImportError:
11
+ from urllib.error import URLError
12
from urllib.request import urlopen
13
14
from flask import _request_ctx_stack
@@ -72,7 +73,7 @@ def worker(app, port):
72
73
74
urlopen(self.url())
75
timeout = 0
- except:
76
+ except URLError:
77
timeout -= 1
78
79
def url(self, url=''):
0 commit comments