Skip to content

Commit

Permalink
Set local variable before useage
Browse files Browse the repository at this point in the history
Fixes #1351.
  • Loading branch information
lucc authored and pazz committed Dec 14, 2018
1 parent a5d956a commit 1e346ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alot/commands/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,8 @@ async def apply(self, ui):

ui.senderhistory.append(fromaddress)
self.envelope.add('From', fromaddress)
else:
fromaddress = self.envelope.get("From")

# try to find the account again
if account is None:
Expand Down

0 comments on commit 1e346ca

Please sign in to comment.