Skip to content

Commit

Permalink
PEP8 Fix : Local variable 'message' might be referenced before assign…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
Saumya-Mishra9129 committed May 24, 2020
1 parent e9fdd59 commit 0bb8185
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/cpsection/backup/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def __init__(self, operation, view):
# check the backend availables, if there are more than one
# show to the user to select one
if len(self._view.manager.get_backends()) > 1:
message = None
if operation == OPERATION_BACKUP:
message = _('Select where you want create your backup')
if operation == OPERATION_RESTORE:
Expand Down

0 comments on commit 0bb8185

Please sign in to comment.