fixed it for real this time oops
This commit is contained in:
parent
63fa34b6c7
commit
a3fb1ba111
9
gen.py
9
gen.py
|
@ -15,11 +15,12 @@ parser.add_argument('-s', '--simulate', dest='simulate', action='store_true',
|
|||
|
||||
args = parser.parse_args()
|
||||
|
||||
cfg = json.load(open('config.json', 'r'))
|
||||
cfg = json.load(open('config.json'))
|
||||
|
||||
client = Mastodon(
|
||||
client_id="clientcred.secret",
|
||||
access_token="usercred.secret",
|
||||
client_id=cfg['client']['id'],
|
||||
client_secret=cfg['client']['secret'],
|
||||
access_token=cfg['secret'],
|
||||
api_base_url=cfg['site'])
|
||||
|
||||
toot = create.make_toot()
|
||||
|
@ -34,7 +35,7 @@ if not args.simulate:
|
|||
except Exception as err:
|
||||
toot = {
|
||||
"toot":
|
||||
"Mistress @lynnesbian@deadinsi.de, something has gone terribly" \
|
||||
"Mistress @lynnesbian@fedi.lynnesbian.space, something has gone terribly" \
|
||||
+ " wrong! While attempting to post a toot, I received the following" \
|
||||
+ " error:\n" + "\n".join(traceback.format_tb(sys.exc_info()[2]))
|
||||
}
|
||||
|
|
Reference in New Issue