Skip to content

Commit

Permalink
Fix UnboundLocalError when wiping memory
Browse files Browse the repository at this point in the history
Bug introduced April 2019 after version 2.2 stable
d5ab76f

Reported by Ub3rZ4cH

Closes #575
  • Loading branch information
az0 committed Jul 8, 2019
1 parent a219a45 commit b6c108e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bleachbit/Memory.py
Expand Up @@ -274,7 +274,7 @@ def wipe_swap_linux(devices, proc_swaps):
raise RuntimeError('Cannot wipe swap while it is in use')
for device in devices:
# TRANSLATORS: The variable is a device like /dev/sda2
logger.info(_("Wiping the swap device %s.") % device)
logger.info(_("Wiping the swap device %s."), device)
safety_limit_bytes = 29 * 1024 ** 3 # 29 gibibytes
actual_size_bytes = get_swap_size_linux(device, proc_swaps)
if actual_size_bytes > safety_limit_bytes:
Expand Down

0 comments on commit b6c108e

Please sign in to comment.