Skip to content

Commit

Permalink
fix exception comment
Browse files Browse the repository at this point in the history
  • Loading branch information
winsonluk committed Dec 28, 2024
1 parent 02d3afe commit d8afbe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpt_researcher/actions/report_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ async def generate_report(
llm_kwargs=cfg.llm_kwargs,
cost_callback=cost_callback,
)
except Exception as e:
except:
try:
report = await create_chat_completion(
model=cfg.smart_llm_model,
Expand All @@ -260,7 +260,7 @@ async def generate_report(
llm_kwargs=cfg.llm_kwargs,
cost_callback=cost_callback,
)
except:
except Exception as e:
print(f"Error in generate_report: {e}")

return report

0 comments on commit d8afbe8

Please sign in to comment.