Skip to content

Commit

Permalink
Updates: Only log generic errors when checking for updates
Browse files Browse the repository at this point in the history
That's because we're unable to give proper feedback to users about what
to do to solve the error.
  • Loading branch information
ccordoba12 committed Mar 9, 2024
1 parent 14f1fa4 commit d2ae1dc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions spyder/workers/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,6 @@ def start(self):
error_msg = HTTP_ERROR_MSG.format(status_code=page.status_code)
logger.debug(err, stack_info=True)
except Exception as err:
error = traceback.format_exc()
formatted_error = error.replace('\n', '<br>').replace(' ', '&nbsp;')

error_msg = _(
'It was not possible to check for Spyder updates due to the '
'following error:'
'<br><br>'
'<tt>{}</tt>'
).format(formatted_error)
logger.debug(err, stack_info=True)

self.error = error_msg
Expand Down

0 comments on commit d2ae1dc

Please sign in to comment.