Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #11269

Closed
Open
Created Mar 22, 2014 by Yawning Angel@yawning

Misplaced comma in scramblesuit.py

A misplaced comma in a raise statement causes a ValuError instead of a helpful message to the user.

Reported on #tor by picuntu-ul.

Since it's totally trivial, I'll inline the fix as well:

diff --git a/obfsproxy/transports/scramblesuit/scramblesuit.py b/obfsproxy/transports/scramblesuit/scramblesuit.py
index 9262b34..bff0069 100644
--- a/obfsproxy/transports/scramblesuit/scramblesuit.py
+++ b/obfsproxy/transports/scramblesuit/scramblesuit.py
@@ -551,7 +551,7 @@ class ScrambleSuitTransport( base.BaseTransport ):
             rawLength = len(uniformDHSecret)
             if rawLength != const.SHARED_SECRET_LENGTH:
                 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."
                     % (const.SHARED_SECRET_LENGTH, rawLength))
             else:
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking