def handle_error(handler):
    @wraps(handler)
    def handle(self, *args, **kwargs):
        try:
            return handler(self, *args, **kwargs)
        except UWS.UWSError as e:
            if not debug:
                print "An error occurred:\n   %s" % e.msg
                return
            else:
                print e.msg % "An error occurred:\n   %s"
                print e.raw
                raise
    return handle
dataset/ETHPy150Open aipescience/uws-client/uws/cli/main.py/handle_error/swapped operands of `%`