Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias committed May 31, 2023
1 parent 4d8936e commit adcd4c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/scraping/notice.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ def formatted_content(self) -> str:
try:
while content[split_index] != " ":
split_index = split_index - 1
except Exception as e:
except IndexError as _e:
# fix for https://github.com/UNICT-DMI/Telegram-UNICT-Bot/issues/45
print(str(e))
print(str(_e))
return f"{content[:max_len-1]}{config_map['max_length_footer']}"

content = f"{content[:split_index]}{config_map['max_length_footer']}"
Expand Down

0 comments on commit adcd4c9

Please sign in to comment.