erreur parenthèse

This commit is contained in:
nemesis 2020-04-09 10:30:45 +02:00
parent f3d90af4ca
commit aebe530c38

View file

@ -2029,7 +2029,7 @@ def titre(room, event): # cherche le titre d'une page
args.pop(0)
try:
url=args[0]
if not (re.search(r"^.*://",url):
if not (re.search(r"^.*://",url)):
url = "http://" + url
r = requests.get(url)
res = re.search(r"<title>(.*)</title>",r.text)