From bb7d8018c673db25a9ca1277fbdd4c9f187b07e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0urda?= Date: Sun, 31 Jul 2022 19:27:05 +0800 Subject: [PATCH] Fix handling of objects from unwanted streams --- src/network/bmproto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/bmproto.py b/src/network/bmproto.py index 1295bd34..009c471f 100644 --- a/src/network/bmproto.py +++ b/src/network/bmproto.py @@ -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)