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)