diff --git a/src/pyws/errors.py b/src/pyws/errors.py
index <HASH>..<HASH> 100644
--- a/src/pyws/errors.py
+++ b/src/pyws/errors.py
@@ -10,7 +10,7 @@ class Error(DefaultStrImplemntationMixin, Exception):
 
     def __unicode__(self):
         if self.__doc__:
-            return unicode(self.__doc__ % self.args)
+            return unicode(self.__doc__.strip() % self.args)
         if self.args:
             return self.args[0]
         return 'unknown error'
added .strip to error messages