Skip to content

handle empty log file#2738

Merged
LKuemmel merged 2 commits intoopenWB:masterfrom
LKuemmel:fixes
Sep 10, 2025
Merged

handle empty log file#2738
LKuemmel merged 2 commits intoopenWB:masterfrom
LKuemmel:fixes

Conversation

@LKuemmel
Copy link
Contributor

@LKuemmel LKuemmel commented Sep 8, 2025

No description provided.

try:
content = json.load(json_file)
except json.decoder.JSONDecodeError:
corrupt_path = filepath + ".bak1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Die Endung .bak1 würde mir zu sehr nach "Sicherung" klingen, da steckt doch aber was kaputtes drin...
Wie wärs mit .unparsable?

Und ein Timestamp wäre womöglich auch 'ne gute Idee, fall das zu Grunde liegende Problem mehrmals am Tag auf tritt..

@LKuemmel LKuemmel added this to the 2.1.8 milestone Sep 9, 2025
@LKuemmel LKuemmel merged commit cda6bcd into openWB:master Sep 10, 2025
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