equal
deleted
inserted
replaced
279 if not isinstance(args, (list, tuple)): |
279 if not isinstance(args, (list, tuple)): |
280 args = (args,) |
280 args = (args,) |
281 try: |
281 try: |
282 args = [json.loads(arg) for arg in args] |
282 args = [json.loads(arg) for arg in args] |
283 except ValueError, exc: |
283 except ValueError, exc: |
284 self.exception('error while decoding json arguments for js_%s: %s', |
284 self.exception('error while decoding json arguments for js_%s: %s (err: %s)', |
285 fname, args, exc) |
285 fname, args, exc) |
286 raise RemoteCallFailed(exc_message(exc, self._cw.encoding)) |
286 raise RemoteCallFailed(exc_message(exc, self._cw.encoding)) |
287 try: |
287 try: |
288 result = func(*args) |
288 result = func(*args) |
289 except (RemoteCallFailed, DirectResponse): |
289 except (RemoteCallFailed, DirectResponse): |