~timovwb/pigeonplanner/devel

« back to all changes in this revision

Viewing changes to pigeonplanner/ui/backupdialog.py

  • Committer: Timo Vanwynsberghe
  • Date: 2020-05-06 10:21:08 UTC
  • mfrom: (1432.1.6 4.0)
  • Revision ID: timovwb@gmail.com-20200506102108-cxzqoba6eqs115s9
MergeĀ fromĀ stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
            backup.create_backup(save_path, overwrite=True, include_config=save_config)
101
101
        except Exception as exc:
102
102
            logger.error(exc)
103
 
            msg = (_("There was an error making the backup."), exc.message, _("Failed!"))
 
103
            msg = (_("There was an error making the backup."), str(exc), _("Failed!"))
104
104
            messagedialog.ErrorDialog(msg, self.widgets.dialog)
105
105
        else:
106
106
            messagedialog.InfoDialog(messages.MSG_BACKUP_SUCCES, self.widgets.dialog)
115
115
            self.restore_op.restore_backup(dbobjs, configfile)
116
116
        except Exception as exc:
117
117
            logger.error(exc)
118
 
            msg = (_("There was an error restoring the backup."), exc.message, _("Failed!"))
 
118
            msg = (_("There was an error restoring the backup."), str(exc), _("Failed!"))
119
119
            messagedialog.ErrorDialog(msg, self.widgets.dialog)
120
120
        else:
121
121
            messagedialog.InfoDialog(messages.MSG_RESTORE_SUCCES, self.widgets.dialog)