Skip to content

Commit eee1dc4

Browse files
committed
Fix proxy is NoneType
1 parent fcc217a commit eee1dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/handlers/subscribe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def post(self, userid):
6767
repos = json.loads((await self.db.site.get(1, fields=('repos',), sql_session=sql_session))['repos'])
6868
if proxies:
6969
proxy = random.choice(proxies)
70-
if proxy.get("href"):
70+
if proxy and proxy.get("href"):
7171
proxy = proxy["href"]
7272
else:
7373
proxy = None

0 commit comments

Comments
 (0)