Skip to main content

152 posts tagged with "uv"

uv, the Fast Python Package and Project Manager, Its Commands and pyproject.toml

View All Tags

How to Catch a Specific Exception in Python

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

When something goes wrong, Python raises an exception, and the script stops unless something catches it. Catching one specific kind, such as ValueError, lets you handle the problem you expected while every other error still stops the script and shows you where it happened.