Skip to content

Commit b192638

Browse files
Make progress error reporting more resistant in unit tests
1 parent a0a0fd9 commit b192638

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/robotide/ui/progress.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ def notify(self):
3232

3333
def finish(self):
3434
self._progressbar.Destroy()
35-
context.LOG.report_parsing_errors()
35+
if hasattr(context.LOG, 'report_parsing_errors'):
36+
context.LOG.report_parsing_errors()
3637

3738
def error(self, msg):
3839
self.finish()
39-
context.LOG.error(msg)
40+
if hasattr(context.LOG, 'error'):
41+
context.LOG.error(msg)
4042

4143

4244
class LoadProgressObserver(ProgressObserver):

0 commit comments

Comments
 (0)