Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning message Option BackUp before Update #1609

Merged
merged 4 commits into from
May 8, 2024
Merged

Conversation

pama87
Copy link
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
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
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
1 check passed
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