Get colorama version correctly
This commit is contained in:
parent
be75f45312
commit
a114b46b81
@ -169,7 +169,9 @@ def _module_versions():
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
ver = getattr(colorama, 'VERSION', 'yes')
|
ver = getattr(colorama, 'VERSION', None)
|
||||||
|
if ver is None:
|
||||||
|
ver = getattr(colorama, '__version__', 'yes')
|
||||||
lines.append('colorama: {}'.format(ver))
|
lines.append('colorama: {}'.format(ver))
|
||||||
|
|
||||||
return lines
|
return lines
|
||||||
|
Loading…
Reference in New Issue
Block a user