File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed
llmstack/processors/providers/linkedin Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -363,32 +363,16 @@ def process(self) -> dict:
363363 user_recent_posts = get_user_recent_posts (self ._input .profile_url , web_browser )
364364 if user_recent_posts :
365365 async_to_sync (output_stream .write )(ProfileActivityOutput (posts = user_recent_posts ))
366- else :
367- async_to_sync (output_stream .write )(
368- ProfileActivityOutput (
369- error = f"Could not find any posts for the profile { self ._input .profile_url } " ,
370- )
371- )
366+
372367 if self ._config .get_comments :
373368 user_recent_comments = get_user_recent_comments (self ._input .profile_url , web_browser )
374369 if user_recent_comments :
375370 async_to_sync (output_stream .write )(ProfileActivityOutput (comments = user_recent_comments ))
376- else :
377- async_to_sync (output_stream .write )(
378- ProfileActivityOutput (
379- error = f"Could not find any comments for the profile { self ._input .profile_url } " ,
380- )
381- )
371+
382372 if self ._config .get_reactions :
383373 user_recent_reactions = get_user_recent_reactions (self ._input .profile_url , web_browser )
384374 if user_recent_reactions :
385375 async_to_sync (output_stream .write )(ProfileActivityOutput (reactions = user_recent_reactions ))
386- else :
387- async_to_sync (output_stream .write )(
388- ProfileActivityOutput (
389- error = f"Could not find any reactions for the profile { self ._input .profile_url } " ,
390- )
391- )
392376
393377 else :
394378 async_to_sync (output_stream .write )(
You can’t perform that action at this time.
0 commit comments