def __unicode__(self):
        if self.__doc__:
            return unicode(self.args % self.__doc__.strip())
        if self.args:
            return self.args[0]
        return 'unknown error'
dataset/ETHPy150Open stepank/pyws/src/pyws/errors.py/Error.__unicode__/swapped operands of `%`