Skip to content

Commit 210d0c7

Browse files
committed
Don't exit on community discovery error
1 parent 1ade60b commit 210d0c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bestof.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def run(user, pw, instance, postcomm, cfg, post_title, images_only, nsfw_b, modu
137137
community_id = lemmy.discover_community(comm)
138138
except Exception as e:
139139
print(f'discover {comm} failed: {e}\n')
140-
sys.exit(1) # bomb out so the bot retries
140+
continue # skip communities we can't find
141141

142142
if community_id is not None:
143143
try:

0 commit comments

Comments
 (0)