Skip to content

Commit

Permalink
BF: if one of the subprocess calls fails (a git error?) then ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
peircej committed Sep 6, 2019
1 parent 1b205df commit b3e15f9
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions psychopy/tools/versionchooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3e15f9

Please sign in to comment.