Skip to content

Commit

Permalink
catch exception in tell for stdin/out
Browse files Browse the repository at this point in the history
  • Loading branch information
bebbo committed Dec 11, 2023
1 parent 16036ab commit a73628b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion amitools/vamos/lib/dos/FileHandle.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ def getbuf(self):
return self.unch

def tell(self):
return self.obj.tell()
try:
return self.obj.tell()
except IOError:
return -1

def seek(self, pos, whence):
try:
Expand Down

0 comments on commit a73628b

Please sign in to comment.