but attempting to get it resulted in a crash. Fixed. Backport candidate.
def _mac_ver_lookup(selectors,default=None):
from gestalt import gestalt
+ import MacOS
l = []
append = l.append
for selector in selectors:
try:
append(gestalt(selector))
- except RuntimeError:
+ except (RuntimeError, MacOS.Error):
append(default)
return l
# Check whether the version info module is available
try:
import gestalt
+ import MacOS
except ImportError:
return release,versioninfo,machine
# Get the infos