Skip to content

Commit c3d8a73

Browse files
committed
Add missing format strings
1 parent c1a085c commit c3d8a73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/e3/python/pypi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,15 +350,15 @@ def add_constraint(self, requirement: Requirement) -> None:
350350
if str(v).startswith(str(target_version) + ".")
351351
]
352352
else:
353-
raise PyPIError("Unknown constraint operator {spec[0]}")
353+
raise PyPIError(f"Unknown constraint operator {spec[0]}")
354354

355355
if len(self.versions) != current_length:
356356
logging.debug(
357357
f"Found {len(self.versions)} versions after applying constraints"
358358
)
359359
if len(self.versions) == 0:
360360
logger.critical(f"Cannot satisfy constraint {requirement}")
361-
raise PyPIError("Cannot satisfy constraint {str(requirement)}")
361+
raise PyPIError(f"Cannot satisfy constraint {str(requirement)}")
362362

363363
def __str__(self) -> str:
364364
return f"{self.name}=={self.latest_version}"

0 commit comments

Comments
 (0)