Skip to content
Permalink
Browse files

BF: if one of the subprocess calls fails (a git error?) then ignore

  • Loading branch information...
peircej committed Sep 6, 2019
1 parent 1b205df commit b3e15f9573189147011a7399ececd259e6019b69
Showing with 10 additions and 9 deletions.
  1. +10 −9 psychopy/tools/versionchooser.py
@@ -266,15 +266,16 @@ def availableVersions(local=True, forceCheck=False):
Everything returned has the form Major.minor.patchLevel, as strings.
"""

if local:
return _localVersions(forceCheck)
else:
return sorted(
list(set([psychopy.__version__] + _localVersions(forceCheck) + _remoteVersions(
forceCheck))),
reverse=True)

try:
if local:
return _localVersions(forceCheck)
else:
return sorted(
list(set([psychopy.__version__] + _localVersions(forceCheck) + _remoteVersions(
forceCheck))),
reverse=True)
except subprocess.CalledProcessError:
return []

def fullVersion(partial):
"""Expands a special name or a partial tag to the highest patch level

0 comments on commit b3e15f9

Please sign in to comment.
You can’t perform that action at this time.