Skip to content

Commit

Permalink
Consoles: Don't try to convert debugged filename to unicode if it's a…
Browse files Browse the repository at this point in the history
…lready in unicode

Fixes #2245

- This error was present only in Python 2
- It was introduced while trying to fix issue #1484
  • Loading branch information
ccordoba12 committed Mar 15, 2015
1 parent a4a33d9 commit 49b94a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spyderlib/widgets/externalshell/sitecustomize.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,10 @@ def postcmd(self, stop, line):
def break_here(self, frame):
from bdb import effective
filename = self.canonic(frame.f_code.co_filename)
filename = unicode(filename, "utf-8")
try:
filename = unicode(filename, "utf-8")
except TypeError:
pass
if not filename in self.breaks:
return False
lineno = frame.f_lineno
Expand Down

0 comments on commit 49b94a2

Please sign in to comment.