Skip to content

Commit

Permalink
Fix "|" usage for dict for older Python compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
embar- authored Oct 17, 2024
1 parent a52eb0a commit 32f1343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion safeeyes/plugins/healthstats/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def init(ctx, safeeyes_config, plugin_config):
'total_resets': 0,
}

session = context['session']['plugin'].get('healthstats', {}) or defaults
session = context['session']['plugin'].get('healthstats', {}).copy()
session.update(defaults)
if 'no_of_breaks' in session:
# Ignore old format session.
session = defaults
Expand Down

0 comments on commit 32f1343

Please sign in to comment.