(reasons)
| 105 | |
| 106 | |
| 107 | def raise_unsupported(reasons): |
| 108 | message = ( |
| 109 | "The model you are trying to convert is not supported by CTranslate2. " |
| 110 | "We identified the following reasons:\n" |
| 111 | ) |
| 112 | for reason in reasons: |
| 113 | message += "\n- " + reason |
| 114 | raise ValueError(message) |
| 115 | |
| 116 | |
| 117 | class ConfigurationChecker: |