(*args, **kwargs)
| 174 | |
| 175 | @functools.wraps(processor) |
| 176 | def wrapper(*args, **kwargs) -> str: |
| 177 | try: |
| 178 | output = processor(*args, **kwargs) |
| 179 | except ParseError: |
| 180 | output = None |
| 181 | if isinstance(output, (str, int, float)): |
| 182 | return str(output) |
| 183 | else: |
| 184 | raise ParseError('Cannot use complex JSON value types with --form/--multipart.') |
| 185 | |
| 186 | return wrapper |
| 187 |