Merge pull request #10009 from f321x/fix_revealer_backup
plugin: revealer: stop catching exceptions on noise file creation
This commit is contained in:
@@ -191,12 +191,8 @@ class Plugin(RevealerPlugin):
|
|||||||
|
|
||||||
# Define the create noise file function.
|
# Define the create noise file function.
|
||||||
def create_noise_file():
|
def create_noise_file():
|
||||||
try:
|
self.make_digital(self.d)
|
||||||
self.make_digital(self.d)
|
self.cypherseed_dialog(window)
|
||||||
except Exception:
|
|
||||||
self.logger.exception('')
|
|
||||||
else:
|
|
||||||
self.cypherseed_dialog(window)
|
|
||||||
|
|
||||||
# Handle clicks on the buttons.
|
# Handle clicks on the buttons.
|
||||||
create_button.clicked.connect(create_noise_file)
|
create_button.clicked.connect(create_noise_file)
|
||||||
@@ -258,24 +254,37 @@ class Plugin(RevealerPlugin):
|
|||||||
self.rawnoise = False
|
self.rawnoise = False
|
||||||
version = self.versioned_seed.version
|
version = self.versioned_seed.version
|
||||||
code_id = self.versioned_seed.checksum
|
code_id = self.versioned_seed.checksum
|
||||||
dialog.show_message(''.join([_("{} encrypted for Revealer {}_{} saved as PNG and PDF at: ").format(self.was, version, code_id),
|
dialog.show_message(''.join([
|
||||||
"<b>", self.get_path_to_revealer_file(), "</b>", "<br/>",
|
_("{} encrypted for Revealer {}_{} saved as PNG and PDF at: ").format(self.was, version, code_id),
|
||||||
"<br/>", "<b>", _("Always check your backups.")]),
|
"<b>",
|
||||||
rich_text=True)
|
self.get_path_to_revealer_file(),
|
||||||
|
"</b>",
|
||||||
|
"<br/>",
|
||||||
|
"<br/>",
|
||||||
|
"<b>",
|
||||||
|
_("Always check your backups.")
|
||||||
|
]), rich_text=True)
|
||||||
dialog.close()
|
dialog.close()
|
||||||
|
|
||||||
def ext_warning(self, dialog):
|
def ext_warning(self, dialog):
|
||||||
dialog.show_message(''.join(["<b>",_("Warning"), ": </b>",
|
dialog.show_message(''.join([
|
||||||
_("your seed extension will <b>not</b> be included in the encrypted backup.")]),
|
"<b>",
|
||||||
rich_text=True)
|
_("Warning"),
|
||||||
|
": </b>",
|
||||||
|
_("your seed extension will <b>not</b> be included in the encrypted backup.")
|
||||||
|
]), rich_text=True)
|
||||||
dialog.close()
|
dialog.close()
|
||||||
|
|
||||||
def bdone(self, dialog):
|
def bdone(self, dialog):
|
||||||
version = self.versioned_seed.version
|
version = self.versioned_seed.version
|
||||||
code_id = self.versioned_seed.checksum
|
code_id = self.versioned_seed.checksum
|
||||||
dialog.show_message(''.join([_("Digital Revealer ({}_{}) saved as PNG and PDF at:").format(version, code_id),
|
dialog.show_message(''.join([
|
||||||
"<br/>","<b>", self.get_path_to_revealer_file(), '</b>']),
|
_("Digital Revealer ({}_{}) saved as PNG and PDF at:").format(version, code_id),
|
||||||
rich_text=True)
|
"<br/>",
|
||||||
|
"<b>",
|
||||||
|
self.get_path_to_revealer_file(),
|
||||||
|
'</b>'
|
||||||
|
]), rich_text=True)
|
||||||
|
|
||||||
|
|
||||||
def customtxt_limits(self):
|
def customtxt_limits(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user