Skip to content

fix(backend): remove stale pdb breakpoints and bare except clause#524

Open
ayushshukla1807 wants to merge 1 commit intohatnote:masterfrom
ayushshukla1807:fix/cleanup-debug-artifacts
Open

fix(backend): remove stale pdb breakpoints and bare except clause#524
ayushshukla1807 wants to merge 1 commit intohatnote:masterfrom
ayushshukla1807:fix/cleanup-debug-artifacts

Conversation

@ayushshukla1807
Copy link
Copy Markdown

Closes #523

Removes leftover debugging artifacts across three backend modules:

File Line Change
labs.py 115 Active pdb.set_trace() replaced with print()
admin_endpoints.py 546 Bare except: narrowed to except Exception: (PEP 8 E722)
admin_endpoints.py 547, 555 Commented-out pdb imports removed
utils.py 185 Commented-out pdb import removed

All existing tests pass. Zero functional change outside the __main__ guard in labs.py.

- labs.py: replace active pdb.set_trace() with safe print() in __main__
- admin_endpoints.py: narrow bare except to except Exception (PEP 8 E722)
- admin_endpoints.py: strip commented-out pdb artifacts from get_round_results
- utils.py: remove commented-out pdb from check_schema
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.

Active pdb.set_trace() in labs.py and bare except in admin_endpoints.py

1 participant