Merge pull request #801 from mwhudson/lp-1887997

fix some simple crashes seen in the error tracker
This commit is contained in:
Michael Hudson-Doyle 2020-07-27 10:34:50 +12:00 committed by GitHub
commit 9b533ad522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View File

@ -1199,6 +1199,10 @@ class LVM_LogicalVolume(_Formattable):
def flag(self):
return None # hack!
@property
def is_esp(self):
return False # another hack!
def desc(self):
return _("LVM logical volume")

View File

@ -290,6 +290,8 @@ class OpenHelpMenu(WidgetWrap):
rich = menu_item(
_("Toggle rich mode"), on_press=self.parent.toggle_rich)
buttons.add(rich)
local_title = None
if hasattr(parent.app.ui.body, 'local_help'):
local_title, local_doc = parent.app.ui.body.local_help()
if local_title is not None:
local = menu_item(

View File

@ -185,7 +185,7 @@ class RefreshView(BaseView):
])
buttons.base_widget.focus_position = 1
self.title = self.failed_title
self.title = self.check_failed_title
self._w = screen(rows, buttons, excerpt=_(self.failed_excerpt))
def try_check_again(self, sender=None):

View File

@ -112,7 +112,7 @@ class NetworkConfigForm(Form):
if address not in subnet:
raise ValueError(
_("'{address}' is not contained in '{subnet}'").format(
address, subnet)
address=address, subnet=subnet)
)
return address