Fix handling of objects from unwanted streams

This commit is contained in:
Peter Šurda 2022-07-31 19:27:05 +08:00
parent 20ce69b337
commit bb7d8018c6
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -403,7 +403,7 @@ class BMProto(AdvancedDispatcher, ObjectTracker):
try:
self.object.checkStream()
except BMObjectUnwantedStreamError:
acceptmismatch = config.get(
acceptmismatch = config.getboolean(
"inventory", "acceptmismatch")
BMProto.stopDownloadingObject(
self.object.inventoryHash, acceptmismatch)