Skip to content

Commit eed8cf7

Browse files
committed
Use sys.exc_info()
1 parent 147798f commit eed8cf7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

β€ŽTools/webchecker/webchecker.pyβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,8 @@ def open_file(self, url):
760760
try:
761761
names = os.listdir(path)
762762
except os.error, msg:
763-
raise IOError, msg, sys.exc_traceback
763+
exc_type, exc_value, exc_tb = sys.exc_info()
764+
raise IOError, msg, exc_tb
764765
names.sort()
765766
s = MyStringIO("file:"+url, {'content-type': 'text/html'})
766767
s.write('<BASE HREF="file:%s">\n' %

0 commit comments

Comments
 (0)