Skip to content

Commit b7b0237

Browse files
committed
fixed for Python 2
1 parent fd9d90d commit b7b0237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cs50/cs50.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def excepthook(type, value, tb):
2020
packages = tuple(join(abspath(p), "") for p in getsitepackages() + [getusersitepackages()])
2121
for entry in extract_tb(tb):
2222
fmt = format_list((entry,))
23-
if (entry.filename.startswith(packages)):
23+
if (entry[0].startswith(packages)):
2424
cprint("".join(fmt), attrs=["dark"], end="", file=sys.stderr)
2525
else:
2626
cprint("".join(fmt), end="", file=sys.stderr)

0 commit comments

Comments
 (0)