Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: [conversable_agent] remove raise from property access #2006

Merged
merged 4 commits into from
Mar 15, 2024

Conversation

lalo
Copy link
Member

@lalo lalo commented Mar 13, 2024

raising exception seems drastic, can we return None and let the caller fail or handle it in case it receives a None?

Why are these changes needed?

Related issue number

Checks

raising exception seems drastic, can we return None and let the called fail in case it receives a None?
@codecov-commenter
Copy link

codecov-commenter commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 47.96%. Comparing base (08ba070) to head (8f136a9).

Files Patch % Lines
autogen/agentchat/conversable_agent.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2006       +/-   ##
===========================================
+ Coverage   37.53%   47.96%   +10.42%     
===========================================
  Files          65       65               
  Lines        6913     6913               
  Branches     1521     1648      +127     
===========================================
+ Hits         2595     3316      +721     
+ Misses       4092     3319      -773     
- Partials      226      278       +52     
Flag Coverage Δ
unittests 47.83% <50.00%> (+10.29%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sonichi sonichi enabled auto-merge March 15, 2024 04:30
@sonichi sonichi added this pull request to the merge queue Mar 15, 2024
Merged via the queue into main with commit 146d49b Mar 15, 2024
56 of 67 checks passed
@lalo lalo deleted the lalo-patch-1 branch March 19, 2024 20:32
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
…osoft#2006)

* refactor: [conversable_agent] remove raise from property access

raising exception seems drastic, can we return None and let the called fail in case it receives a None?

* Update conversable_agent.py

---------

Co-authored-by: Chi Wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants