Skip to content

Fix: search_projects crash on unknown category/difficulty values#1275

Merged
steam-bell-92 merged 1 commit into
steam-bell-92:mainfrom
kumudasrip:fix/unknown-badge-fallback
Jun 19, 2026
Merged

Fix: search_projects crash on unknown category/difficulty values#1275
steam-bell-92 merged 1 commit into
steam-bell-92:mainfrom
kumudasrip:fix/unknown-badge-fallback

Conversation

@kumudasrip

Copy link
Copy Markdown
Contributor

📝 Description

Fixed the registry display crash in search_projects.py caused by unknown or invalid category/difficulty values. The project badge rendering now uses safe .get(..., "Unknown")fallbacks, and list sorting now tolerates unsupported difficulty keys. I also hardened main.py display logic to avoid similar failures when registry entries contain unexpected values.

🔗 Linked Issue

Closes #1012


📋 Contribution Checklist

  • My code strictly adheres to the project guidelines (Standard library only, procedural code, clean spacing).
  • I have verified that my files are placed in the correct directory.
  • I have tested my changes thoroughly on my local machine.
  • I have included interactive emojis and clean console/UI outputs.
  • GSSoC 2026: I have been formally assigned to this issue and noted it above.

@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

@kumudasrip is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

@steam-bell-92 steam-bell-92 merged commit d989ba3 into steam-bell-92:main Jun 19, 2026
9 of 11 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Thank you for your contribution!

Your Pull Request has been merged successfully.

We appreciate the time and effort you put into improving this project. Contributions like yours help the repository grow and stay useful for everyone.

If you'd like to contribute again, please check the open issues and make sure you are assigned before opening another Pull Request.

Thanks again for your support! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 [Bug]: display_project crashes on unknown category/difficulty values

2 participants