MySQL-AutoXtraBackup icon indicating copy to clipboard operation
MySQL-AutoXtraBackup copied to clipboard

DryRun causes UnboundLocalError: local variable 'status' referenced before assignment

Open WernerMairl opened this issue 4 years ago • 1 comments

Finding on master: error thrown here: https://github.com/ShahriyarR/MySQL-AutoXtraBackup/blob/72ca0a834f12331c3ed8cde17ea77a8ce573a774/backup_prepare/prepare.py#L630

caused/impacted by the following line in case dryrun! https://github.com/ShahriyarR/MySQL-AutoXtraBackup/blob/72ca0a834f12331c3ed8cde17ea77a8ce573a774/backup_prepare/prepare.py#L539

Assumtion: some "else" for dryrun should initialize status (status not initialzed for dry-run)!

regards Werner

WernerMairl avatar Feb 08 '21 13:02 WernerMairl

@WernerMairl As I have released version 2.0, this error should not be encountered anymore. Could you please check out out the latest version of our tool? Thanks :)

ShahriyarR avatar May 06 '21 11:05 ShahriyarR