Skip to content

Commit

Permalink
Even more insanity.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithrandi committed Aug 19, 2017
1 parent 289de86 commit 11e538b
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions nevow/__init__.py
Expand Up @@ -47,13 +47,21 @@ def _versions():
dev = parts.group('dev')
if dev:
dev = int(dev.replace('dev', ''))
version = Version(
"nevow",
__version_info__[0],
__version_info__[1],
__version_info__[2],
release_candidate=rc,
dev=dev)
try:
version = Version(
"nevow",
__version_info__[0],
__version_info__[1],
__version_info__[2],
release_candidate=rc,
dev=dev)
except TypeError:
# Version might be too old for rc/dev, try without
version = Version(
"nevow",
__version_info__[0],
__version_info__[1],
__version_info__[2])
return __version__, __version_info__, version


Expand Down

0 comments on commit 11e538b

Please sign in to comment.