This commit is contained in:
parent
78745c4e29
commit
8b833eef0b
@ -59,8 +59,7 @@ def draw_placeholder_content(page: Page):
|
||||
100),
|
||||
font=font)
|
||||
draw.text(
|
||||
(10, 10), f"Border: {
|
||||
page.border_size}px", fill=(
|
||||
(10, 10), f"Border: {page.border_size}px", fill=(
|
||||
150, 150, 150), font=font)
|
||||
draw.text(
|
||||
(content_x + 10,
|
||||
|
||||
@ -103,8 +103,7 @@ class RenderableImage(Renderable, Queriable):
|
||||
self._pil_image = PILImage.open(BytesIO(response.content))
|
||||
self._abstract_image._loaded_image = self._pil_image
|
||||
else:
|
||||
self._error_message = f"Failed to load image: HTTP status {
|
||||
response.status_code}"
|
||||
self._error_message = f"Failed to load image: HTTP status {response.status_code}"
|
||||
except ImportError:
|
||||
self._error_message = "Requests library not available for URL loading"
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user