mirror of
https://git.kiwifarms.net/mint/ebooks.git
synced 2024-10-23 01:39:06 +00:00
Remove leaking exceptions
This commit is contained in:
parent
8e87ef927d
commit
b064d72733
1 changed files with 0 additions and 7 deletions
7
gen.py
7
gen.py
|
@ -35,13 +35,6 @@ async def main():
|
||||||
try:
|
try:
|
||||||
await pl.post(toot, visibility='unlisted', cw=cfg['cw'])
|
await pl.post(toot, visibility='unlisted', cw=cfg['cw'])
|
||||||
except Exception:
|
except Exception:
|
||||||
import traceback
|
|
||||||
toot = (
|
|
||||||
'An error occurred while submitting the generated post. '
|
|
||||||
'Contact io@csdisaster.club for assistance. Full traceback:\n\n'
|
|
||||||
+ traceback.format_exc()
|
|
||||||
)
|
|
||||||
await pl.post(toot, visibility='unlisted', cw='Error!')
|
|
||||||
raise
|
raise
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue