only skip failing users, added windows compatibility
This commit is contained in:
parent
11e7a1ff88
commit
1ec058027c
1
gen.py
1
gen.py
|
@ -23,6 +23,7 @@ client = Mastodon(
|
||||||
access_token=cfg['secret'],
|
access_token=cfg['secret'],
|
||||||
api_base_url=cfg['site'])
|
api_base_url=cfg['site'])
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
toot = create.make_toot()
|
toot = create.make_toot()
|
||||||
if not args.simulate:
|
if not args.simulate:
|
||||||
try:
|
try:
|
||||||
|
|
7
main.py
7
main.py
|
@ -214,10 +214,11 @@ for f in following:
|
||||||
print(" Done!")
|
print(" Done!")
|
||||||
db.commit()
|
db.commit()
|
||||||
except:
|
except:
|
||||||
print("Encountered an error! Saving toots to database and exiting.")
|
print("Encountered an error! Saving toots to database and continuing.")
|
||||||
db.commit()
|
db.commit()
|
||||||
db.close()
|
# db.close()
|
||||||
sys.exit(1)
|
|
||||||
|
print("Done!")
|
||||||
|
|
||||||
db.commit()
|
db.commit()
|
||||||
db.execute("VACUUM") #compact db
|
db.execute("VACUUM") #compact db
|
||||||
|
|
Loading…
Reference in New Issue