Merge pull request #801 from mwhudson/lp-1887997
fix some simple crashes seen in the error tracker
This commit is contained in:
commit
9b533ad522
|
@ -1199,6 +1199,10 @@ class LVM_LogicalVolume(_Formattable):
|
||||||
def flag(self):
|
def flag(self):
|
||||||
return None # hack!
|
return None # hack!
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_esp(self):
|
||||||
|
return False # another hack!
|
||||||
|
|
||||||
def desc(self):
|
def desc(self):
|
||||||
return _("LVM logical volume")
|
return _("LVM logical volume")
|
||||||
|
|
||||||
|
|
|
@ -290,6 +290,8 @@ class OpenHelpMenu(WidgetWrap):
|
||||||
rich = menu_item(
|
rich = menu_item(
|
||||||
_("Toggle rich mode"), on_press=self.parent.toggle_rich)
|
_("Toggle rich mode"), on_press=self.parent.toggle_rich)
|
||||||
buttons.add(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()
|
local_title, local_doc = parent.app.ui.body.local_help()
|
||||||
if local_title is not None:
|
if local_title is not None:
|
||||||
local = menu_item(
|
local = menu_item(
|
||||||
|
|
|
@ -185,7 +185,7 @@ class RefreshView(BaseView):
|
||||||
])
|
])
|
||||||
buttons.base_widget.focus_position = 1
|
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))
|
self._w = screen(rows, buttons, excerpt=_(self.failed_excerpt))
|
||||||
|
|
||||||
def try_check_again(self, sender=None):
|
def try_check_again(self, sender=None):
|
||||||
|
|
|
@ -112,7 +112,7 @@ class NetworkConfigForm(Form):
|
||||||
if address not in subnet:
|
if address not in subnet:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
_("'{address}' is not contained in '{subnet}'").format(
|
_("'{address}' is not contained in '{subnet}'").format(
|
||||||
address, subnet)
|
address=address, subnet=subnet)
|
||||||
)
|
)
|
||||||
return address
|
return address
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue