Skip to content

Commit

Permalink
Merge pull request #6125 from jnsebgosselin/prevent_error_fileswitcher
Browse files Browse the repository at this point in the history
PR: Prevent an error in the FileSwitcher when all tabs are closed in the last focused widget.
  • Loading branch information
ccordoba12 authored Jan 4, 2018
2 parents 1999ec3 + 449bacc commit a576c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/widgets/fileswitcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def icons(self):

@property
def current_path(self):
return self.paths_by_widget[self.get_widget()]
return self.paths_by_widget.get(self.get_widget(), None)

@property
def paths_by_widget(self):
Expand Down

0 comments on commit a576c21

Please sign in to comment.