Skip to content

Commit

Permalink
fix(imaging): more reliable way to check if extra is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
helmut-hoffer-von-ankershoffen committed Dec 29, 2024
1 parent 144ee14 commit 5177b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/starbridge/hello/service.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Handles Hello operations."""

import base64
import imp
import importlib
import io
import os

Expand Down Expand Up @@ -37,7 +37,7 @@ def hello(self, locale: str = "en_US", context: MCPContext | None = None):
return "Hallo Welt!"
return "Hello World!"

if imp.find_module("cairosvg"):
if importlib.util.find_spec("cairosvg"):

@mcp_tool()
def bridge(self, context: MCPContext | None = None):
Expand Down

0 comments on commit 5177b0b

Please sign in to comment.