Skip to content

Commit

Permalink
Fix for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Oct 5, 2023
1 parent f4bdd09 commit 65a139d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reportportal_client/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ def get_package_parameters(package_name: str, parameters: List[str] = None) -> L
return [None] * len(parameters)
for param in parameters:
if param.lower() == 'name':
result.append(getattr(package_info, 'project_name', None))
param = 'project_name'
result.append(getattr(package_info, param, None))
else:
# noinspection PyCompatibility
from importlib.metadata import distribution, PackageNotFoundError
Expand Down

0 comments on commit 65a139d

Please sign in to comment.