Skip to content

Commit b1018a9

Browse files
committed
[update]没有代理时 不返回None
1 parent 5c8fd57 commit b1018a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Api/ProxyApi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def index():
4444
@app.route('/get/')
4545
def get():
4646
proxy = ProxyManager().get()
47-
return proxy
47+
return proxy if proxy else 'no proxy!'
4848

4949

5050
@app.route('/refresh/')

0 commit comments

Comments
 (0)