Revision 9bc8317f kamaki/cli/commands/errors.py

b/kamaki/cli/commands/errors.py
123 123
    def authenticate(this, foo):
124 124
        def _raise(self, *args, **kwargs):
125 125
            try:
126
                r = foo(self, *args, **kwargs)
126
                return foo(self, *args, **kwargs)
127 127
            except ClientError as ce:
128 128
                if ce.status == 401:
129 129
                    token = kwargs.get('custom_token', 0) or self.client.token
......
133 133
                    details = [] if token else this._token_details
134 134
                    raiseCLIError(ce, msg, details=details)
135 135
            self._raise = foo
136
            return r
137 136
        return _raise
138 137

  
139 138

  

Also available in: Unified diff