Skip to content

Commit

Permalink
fix(): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
13ph03nix committed Sep 7, 2021
1 parent 3a800df commit 5339ebd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pocsuite3/lib/core/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ def check_requires(data):
if not import_name:
import_name = install_name
__import__(import_name)
ver = pkg_resources.get_distribution(import_name).version
try:
ver = pkg_resources.get_distribution(install_name).version
except Exception:
ver = 'unknown'
logger.info(f'{install_name}=={ver} has been installed')
except ImportError:
err_msg = f'{install_name} not found, try install with "python -m pip install {install_name}"'
Expand Down

0 comments on commit 5339ebd

Please sign in to comment.