##// END OF EJS Templates
extensions: ignore exceptions from an extension's `getversion()` method...
Matt Harbison -
r47829:55345152 stable
parent child Browse files
Show More
@@ -930,7 +930,11 b' def notloaded():'
930 def moduleversion(module):
930 def moduleversion(module):
931 '''return version information from given module as a string'''
931 '''return version information from given module as a string'''
932 if util.safehasattr(module, b'getversion') and callable(module.getversion):
932 if util.safehasattr(module, b'getversion') and callable(module.getversion):
933 version = module.getversion()
933 try:
934 version = module.getversion()
935 except Exception:
936 version = b'unknown'
937
934 elif util.safehasattr(module, b'__version__'):
938 elif util.safehasattr(module, b'__version__'):
935 version = module.__version__
939 version = module.__version__
936 else:
940 else:
General Comments 0
You need to be logged in to leave comments. Login now