Skip to content

Commit

Permalink
Minor Fix Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentDemonSD authored Nov 14, 2022
1 parent 28a0f18 commit 2c7eb94
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,11 @@ def log(update, context):

try:
help_user = telegraph.create_page(
title='{TITLE_NAME} HELP',
title=f'{TITLE_NAME} HELP',
content=help_string_telegraph_user,
)["path"]
except Exception as err:
LOGGER.warning(f"{err}")
pass
LOGGER.warning(f"Telegraph Error: {err}")


help_string_telegraph_admin = f'''
Expand Down Expand Up @@ -320,12 +319,11 @@ def log(update, context):

try:
help_admin = telegraph.create_page(
title='{TITLE_NAME} HELP',
title=f'{TITLE_NAME} HELP',
content=help_string_telegraph_admin,
)["path"]
except Exception as err:
LOGGER.warning(f"{err}")
pass
LOGGER.warning(f"Telegraph Error: {err}")

def bot_help(update, context):
button = ButtonMaker()
Expand Down

0 comments on commit 2c7eb94

Please sign in to comment.