sweepai / sweep

Sweep: open-source AI-powered Software Developer for small features and bug fixes.
https://sweep.dev
Other
7.43k stars 425 forks source link

Sweep: Refactor sweepai/core/sweep_bot.py to remove commented out code and use traceback in error logs #1824

Open sweep-nightly[bot] opened 1 year ago

sweep-nightly[bot] commented 1 year ago

In the file sweepai/core/sweep_bot.py, there are a few issues that need to be addressed:

  1. There is a large chunk of commented out code at lines 20-40. This code should be removed unless it serves as a docstring or explanation in the code.

  2. The file uses the logger.warning function to log errors at lines 50, 60, and 70. However, it does not use traceback during these exceptions. All error logs should use traceback during exceptions to provide more detailed error information. Please refactor these lines to include traceback.

Please make these changes to ensure the file conforms to our coding standards.

sweep-nightly[bot] commented 1 year ago
Sweeping

0%

Actions (click)


❌ Unable to Complete PR

It looks like an issue has occurred around fetching the files. Perhaps the repo has not been initialized. If this error persists contact team@sweep.dev.

@sweep-nightly[bot], editing this issue description to include more details will automatically make me relaunch.

For bonus GPT-4 tickets, please report this bug on Discord.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.