don't create a client when simulating
This commit is contained in:
parent
8fe30f0c88
commit
2b2824a73e
1 changed files with 8 additions and 5 deletions
5
gen.py
5
gen.py
|
@ -15,7 +15,10 @@ args = parser.parse_args()
|
|||
|
||||
cfg = json.load(open('config.json'))
|
||||
|
||||
client = Mastodon(
|
||||
client = None
|
||||
|
||||
if not args.simulate:
|
||||
client = Mastodon(
|
||||
client_id=cfg['client']['id'],
|
||||
client_secret=cfg['client']['secret'],
|
||||
access_token=cfg['secret'],
|
||||
|
|
Loading…
Reference in a new issue