Skip to content

Commit c906797

Browse files
author
Foxlet
committed
Gotta cast it right.
1 parent d0aaedf commit c906797

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/issafe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def load_api(bot):
2727
@hook.command()
2828
def issafe(text):
2929
"""<website> -- Checks the website against Google's Safe Browsing List."""
30-
if urlparse(text).scheme == False:
30+
if bool(urlparse(text).scheme) == False:
3131
return "Check your URL (it should be a complete url)."
3232

3333
parsed = requests.get(API_SB, params={"url": text, "client": "cloudbot", "key": dev_key, "pver": "3.1", "appver": str(cloudbot.__version__)})

0 commit comments

Comments
 (0)