Skip to content

Commit

Permalink
Make progress error reporting more resistant in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HelioGuilherme66 committed Nov 11, 2024
1 parent a0a0fd9 commit b192638
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/robotide/ui/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ def notify(self):

def finish(self):
self._progressbar.Destroy()
context.LOG.report_parsing_errors()
if hasattr(context.LOG, 'report_parsing_errors'):
context.LOG.report_parsing_errors()

def error(self, msg):
self.finish()
context.LOG.error(msg)
if hasattr(context.LOG, 'error'):
context.LOG.error(msg)


class LoadProgressObserver(ProgressObserver):
Expand Down

0 comments on commit b192638

Please sign in to comment.