PyCQA / isort

A Python utility / library to sort imports.
https://pycqa.github.io/isort/
MIT License
6.53k stars 583 forks source link

Add exception handling for missing isort package metadata #2226

Open maheshsaripalli9 opened 10 months ago

maheshsaripalli9 commented 10 months ago

This commit introduces a try-except block to handle the scenario where the isort package metadata is not available. In such cases, instead of raising an error, the version variable is set to an empty string.

maheshsaripalli9 commented 10 months ago

Can you review this code? @timothycrosley

maheshsaripalli9 commented 4 months ago

Can you review this PR ? @staticdev