Skip to content

Commit afec412

Browse files
committed
BF: Display message and return early when version cannot be found
1 parent 2a5c02e commit afec412

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

psychopy/app/connections/updates.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,14 @@ def updateStatus(self):
332332
"""Check the current version and most recent version and update ctrls
333333
"""
334334
if self.latest == -1:
335+
# Set message and display, and return early if version could not be found
335336
msg = _translate(
336337
"You are running PsychoPy v%s.\n ") % self.runningVersion
337338
msg += _translate("PsychoPy could not connect to the \n internet"
338339
" to check for more recent versions.\n")
339340
msg += _translate("Check proxy settings in preferences.")
341+
self.statusMessage.SetLabel(msg)
342+
return
340343
elif (parse_version(self.latest['version'])
341344
< parse_version(self.runningVersion)):
342345
msg = _translate(

0 commit comments

Comments
 (0)