Skip to content

Commit

Permalink
issue #230 - don't use versionfinder at all on py32
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Dec 17, 2016
1 parent 447ab2a commit f5c36f5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions awslimitchecker/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,17 @@
"""

import os
import sys

import logging
logger = logging.getLogger(__name__)

try:
from versionfinder import find_version
except ImportError:
logger.error("Unable to import versionfinder", exc_info=True)
# GitPython doesn't work at all on py32; throws SyntaxErrors
if sys.version_info[0:2] != (3, 2):
try:
from versionfinder import find_version
except ImportError:
logger.error("Unable to import versionfinder", exc_info=True)

_VERSION = '0.6.0'
_PROJECT_URL = 'https://github.com/jantman/awslimitchecker'
Expand Down

0 comments on commit f5c36f5

Please sign in to comment.