浏览代码

Added try-except around make_post.

Makes it so that we can always save recent activity, as if a later upload fails
we don't save that we got to post earlier ones.
master
Trey Del Bonis 2 年前
父节点
当前提交
ba2e97c323
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      main.py

+ 4
- 1
main.py 查看文件

@@ -190,7 +190,10 @@ def main():

for p in okps:
print('posting', p['rid'], '-', p['title'])
make_post(masto, p)
try:
make_post(masto, p)
except Exception as e:
print('error posting:', p['rid'], str(e))

save_recents(newrecents)


正在加载...
取消
保存