Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Bug 1181682 - Avoid unbound_local error under certain failure conditi…
Browse files Browse the repository at this point in the history
…ons in firefox-ui-updates. r=armenzg
  • Loading branch information
chmanchester committed Jul 9, 2015
1 parent 17c045e commit 2339aac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion firefox_ui_harness/testcases/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def download_and_apply_forced_update(self):

# In case of a broken complete update the about window has to be used
if self.updates[self.current_update_index]['patch']['is_complete']:
about_window = None
try:
self.assertEqual(dialog.wizard.selected_panel,
dialog.wizard.error)
Expand All @@ -185,7 +186,8 @@ def download_and_apply_forced_update(self):
about_window.wait_for_update_applied()

finally:
self.updates[self.current_update_index]['patch'] = about_window.patch_info
if about_window:
self.updates[self.current_update_index]['patch'] = about_window.patch_info

else:
try:
Expand Down

0 comments on commit 2339aac

Please sign in to comment.