Skip to content

Commit d5d40ac

Browse files
committed
minor fixes
minor fixes
1 parent 7bda298 commit d5d40ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎main.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def fetch_public_ip(proxy: str | None = None) -> str | None:
313313
]
314314
if proxy:
315315
proxies = {
316-
"http": f"socks5://127.0.0.1:{proxy}",
316+
"http": f"socks5://127.0.0.1:{proxy}",
317317
"https": f"socks5://127.0.0.1:{proxy}",
318318
}
319319

@@ -325,7 +325,7 @@ def fetch_public_ip(proxy: str | None = None) -> str | None:
325325
if content.startswith("{"):
326326
return r.json().get("ip")
327327
return content
328-
except Exception as e:
328+
except Exception:
329329
continue
330330

331331
return None

0 commit comments

Comments
 (0)