Skip to content

Warning message Option BackUp before Update#1609

Merged
LKuemmel merged 4 commits intoopenWB:masterfrom
pama87:master
May 8, 2024
Merged

Warning message Option BackUp before Update#1609
LKuemmel merged 4 commits intoopenWB:masterfrom
pama87:master

Conversation

@pama87
Copy link
Copy Markdown
Contributor

@pama87 pama87 commented May 8, 2024

No description provided.

@pama87 pama87 requested a review from LKuemmel May 8, 2024 06:33
Comment on lines +684 to +686
if SubData.system_data["system"].data["backup_before_update"]:
pub_user_message(payload, connection_id, "Fehler beim BackUp erstellen<br />Fahre mit Update fort...",
MessageType.WARNING)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Z 638 muss die Exception abgefangen werden, sonst wird die Durchführung des Updates trotzdem abgebrochen:

try:
                self.createCloudBackup(connection_id, {})
            except Exception:
                pub_user_message(payload, connection_id, ("Fehler beim Erstellen der Cloud-Sicherung."
                                 f" {traceback.format_exc()}<br />Fahre mit Update fort..."),
                                 MessageType.WARNING)

In Z 692 kann die Meldung noch um einen Hinweis ergänzt werden:

pub_user_message(payload, connection_id, ("Backup wird erstellt. Dieser Vorgang kann je nach Umfang der "
                             "Logdaten und Upload-Geschwindigkeit des Cloud-Dienstes einige Zeit in Anspruch nehmen."),
                             MessageType.INFO)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Danke

@pama87 pama87 force-pushed the master branch 2 times, most recently from 45cdd4a to fc25f38 Compare May 8, 2024 08:35
@LKuemmel LKuemmel merged commit a6d16f8 into openWB:master May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants