fixed a few silly mistakes
This commit is contained in:
parent
cd659d86a1
commit
063aa122bc
1 changed files with 2 additions and 2 deletions
4
gen.py
4
gen.py
|
@ -30,10 +30,10 @@ if __name__ == '__main__':
|
||||||
toot = re.sub(r"[\[\]\(\)\{\}\"“”«»„]", "", toot)
|
toot = re.sub(r"[\[\]\(\)\{\}\"“”«»„]", "", toot)
|
||||||
if not args.simulate:
|
if not args.simulate:
|
||||||
try:
|
try:
|
||||||
client.status_post(toot['toot'], visibility = 'unlisted', spoiler_text = cfg['cw'])
|
client.status_post(toot, visibility = 'unlisted', spoiler_text = cfg['cw'])
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
toot = "An error occurred while submitting the generated post. Contact lynnesbian@fedi.lynnesbian.space for assistance."
|
toot = "An error occurred while submitting the generated post. Contact lynnesbian@fedi.lynnesbian.space for assistance."
|
||||||
client.status_post(toot['toot'], visibility = 'unlisted', spoiler_text = "Error!")
|
client.status_post(toot, visibility = 'unlisted', spoiler_text = "Error!")
|
||||||
try:
|
try:
|
||||||
print(toot)
|
print(toot)
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
|
|
Loading…
Reference in a new issue