don't create a client when simulating
This commit is contained in:
parent
8fe30f0c88
commit
2b2824a73e
3
gen.py
3
gen.py
|
@ -15,6 +15,9 @@ args = parser.parse_args()
|
||||||
|
|
||||||
cfg = json.load(open('config.json'))
|
cfg = json.load(open('config.json'))
|
||||||
|
|
||||||
|
client = None
|
||||||
|
|
||||||
|
if not args.simulate:
|
||||||
client = Mastodon(
|
client = Mastodon(
|
||||||
client_id=cfg['client']['id'],
|
client_id=cfg['client']['id'],
|
||||||
client_secret=cfg['client']['secret'],
|
client_secret=cfg['client']['secret'],
|
||||||
|
|
Reference in New Issue