This commit is contained in:
Kovid Goyal 2013-09-23 12:18:58 +05:30
parent a4f6d6d19e
commit 178364aa4e

View File

@ -861,7 +861,7 @@ class FormatsManager(QWidget):
if fmt.path is None: if fmt.path is None:
stream = db.format(id_, ext, as_file=True, index_is_id=True) stream = db.format(id_, ext, as_file=True, index_is_id=True)
else: else:
stream = open(fmt.path, 'r+b') stream = open(fmt.path, 'rb')
try: try:
with stream: with stream:
mi = get_metadata(stream, ext) mi = get_metadata(stream, ext)