Skip to content

Commit

Permalink
Add code review fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Oct 24, 2020
1 parent 4ecc2d2 commit ca06dc0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions spyder/app/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -3000,7 +3000,6 @@ def closing(self, cancelable=False):
try:
if isinstance(plugin, SpyderDockablePlugin):
plugin.close_window()

if not plugin.on_close(cancelable):
return False
except AttributeError:
Expand All @@ -3011,7 +3010,6 @@ def closing(self, cancelable=False):
plugin._close_window()
if not plugin.closing_plugin(cancelable):
return False

except AttributeError:
pass

Expand All @@ -3023,7 +3021,6 @@ def closing(self, cancelable=False):

if not plugin.on_close(cancelable):
return False

except AttributeError as e:
logger.error(str(e))

Expand Down
2 changes: 1 addition & 1 deletion spyder/plugins/ipythonconsole/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def set_working_directory(self, dirname):
"""Set current working directory.
In the workingdirectory and explorer plugins.
"""
if not self.get_current_client().external_kernel:
if osp.isdir(dirname):
self.sig_current_directory_changed.emit(dirname)

def update_working_directory(self):
Expand Down

0 comments on commit ca06dc0

Please sign in to comment.