From 063aa122bcef72a8e64a95a69529a5d185d7e055 Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 2 Jul 2019 20:44:13 +1000 Subject: [PATCH] fixed a few silly mistakes --- gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen.py b/gen.py index 6671075..16c5c23 100755 --- a/gen.py +++ b/gen.py @@ -30,10 +30,10 @@ if __name__ == '__main__': toot = re.sub(r"[\[\]\(\)\{\}\"“”«»„]", "", toot) if not args.simulate: 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: 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: print(toot) except UnicodeEncodeError: