Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #285 from jayvdb/version-object
Browse files Browse the repository at this point in the history
setuppy.py: Force version to string
  • Loading branch information
orsinium committed Oct 25, 2019
2 parents 56c68a9 + 9e86b8e commit f8437c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dephell/converters/setuppy.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ def _get(msg, name: str) -> str:
value = getattr(msg, name, None)
if not value:
return ''
value = str(value)
if value == 'UNKNOWN':
return ''
return value.strip()
Expand Down

0 comments on commit f8437c8

Please sign in to comment.