Commit a9ce1284 authored by Philipp Winter's avatar Philipp Winter
Browse files

Delete misplaced comma.

The misplaced comma causes a misleading TypeError whereas we actually want to
raise a PluggableTransportError.

This fixes <https://bugs.torproject.org/11269>.
parent 3b97bd28
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -588,7 +588,7 @@ class ScrambleSuitTransport( base.BaseTransport ):
            rawLength = len(uniformDHSecret)
            rawLength = len(uniformDHSecret)
            if rawLength != const.SHARED_SECRET_LENGTH:
            if rawLength != const.SHARED_SECRET_LENGTH:
                raise base.PluggableTransportError(
                raise base.PluggableTransportError(
                    "The UniformDH password must be %d bytes in length, ",
                    "The UniformDH password must be %d bytes in length, "
                    "but %d bytes are given."
                    "but %d bytes are given."
                    % (const.SHARED_SECRET_LENGTH, rawLength))
                    % (const.SHARED_SECRET_LENGTH, rawLength))
            else:
            else: