1. Benoît Allard
  2. hotfiles


Benoit Allard  committed 71f430a

Don't break for old versions of the b extension

  • Participants
  • Parent commits 9bc0c78
  • Branches default

Comments (0)

Files changed (1)

File hotfiles.py

View file
     bversionfunc = getattr(b, 'version')
     if bversionfunc is None:
         return None
+    if isinstance(bversionfunc, type('')):
+        # in version 0.6.0, ``b.version`` is a string
+        return None
     if bversionfunc() < bversionfunc('0.6.2'):
         return None
     return b