show warning with original message when theme not found
This commit is contained in:
parent
9dce37a864
commit
f7d13734f4
1 changed files with 2 additions and 0 deletions
2
ubot.py
2
ubot.py
|
@ -277,6 +277,8 @@ async def main():
|
||||||
if r:
|
if r:
|
||||||
logger.debug(f'found theme {trying_theme_index}')
|
logger.debug(f'found theme {trying_theme_index}')
|
||||||
break
|
break
|
||||||
|
if r == []:
|
||||||
|
logger.warning('theme not found, showing original message: ' + m.text)
|
||||||
logger.debug(str(r))
|
logger.debug(str(r))
|
||||||
if r:
|
if r:
|
||||||
u1url = r[0][0]
|
u1url = r[0][0]
|
||||||
|
|
Loading…
Reference in a new issue