|
2 | 2 | # Copyright © 2024 Opentensor Foundation |
3 | 3 | # |
4 | 4 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated |
5 | | -# documentation files (the “Software”), to deal in the Software without restriction, including without limitation |
| 5 | +# documentation files (the "Software"), to deal in the Software without restriction, including without limitation |
6 | 6 | # the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, |
7 | 7 | # and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
8 | 8 | # |
9 | 9 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of |
10 | 10 | # the Software. |
11 | 11 | # |
12 | | -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO |
| 12 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO |
13 | 13 | # THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
14 | 14 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
15 | 15 | # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
@@ -806,7 +806,7 @@ def parse_headers_to_inputs(cls, headers: dict) -> dict: |
806 | 806 | logging.error(f"Error while parsing 'input_obj' header {key}: {e}") |
807 | 807 | continue |
808 | 808 | else: |
809 | | - pass # TODO: log unexpected keys |
| 809 | + logging.warning(f"Unexpected header key encountered: {key}") |
810 | 810 |
|
811 | 811 | # Assign the remaining known headers directly |
812 | 812 | inputs_dict["timeout"] = headers.get("timeout", None) |
|
0 commit comments