Kaydet (Commit) a66eed62 authored tarafından Guido van Rossum's avatar Guido van Rossum

Implement the suggestion of bug_id=122070: surround tell() call with

try/except.
üst 17bfef58
......@@ -132,7 +132,11 @@ class Message:
tell = self.fp.tell
while 1:
if tell:
startofline = tell()
try:
startofline = tell()
except IOError:
startofline = tell = None
self.seekable = 0
line = self.fp.readline()
if not line:
self.status = 'EOF in headers'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment