Update 'gen_tdp'
If ahriman's site freaks out, then don't crash. Otherwise, crash.
This commit is contained in:
parent
e568b7f1b0
commit
c8b2789567
6
gen_tdp
Executable file → Normal file
6
gen_tdp
Executable file → Normal file
|
@ -17,7 +17,11 @@ for user in users:
|
|||
if user=="asm":
|
||||
continue
|
||||
tdpuser = dict(username=user)
|
||||
title = bs(requests.get("https://tilde.team/~{}".format(user)).text,"lxml").title
|
||||
try:
|
||||
title = bs(requests.get("https://tilde.team/~{}".format(user)).text,"lxml").title
|
||||
except:
|
||||
if user=="ahriman": pass
|
||||
else: raise
|
||||
if title is None:
|
||||
title = "No title"
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user