MCPcopy Index your code
hub / github.com/nathom/streamrip / print_msg

Method print_msg

streamrip/exceptions.py:50–66  ·  view source on GitHub ↗

Return a generic readable message. :param item: :type item: Media :rtype: str

(self, item)

Source from the content-addressed store, hash-verified

48 echo(self.print_msg(item))
49
50 def print_msg(self, item) -> str:
51 """Return a generic readable message.
52
53 :param item:
54 :type item: Media
55 :rtype: str
56 """
57 base_msg = [style(f"Unable to stream {item!s}.", fg="yellow")]
58 if self.message:
59 base_msg.extend(
60 (
61 style("Message:", fg="yellow"),
62 style(self.message, fg="red"),
63 ),
64 )
65
66 return " ".join(base_msg)
67
68
69class ConversionError(Exception):

Callers 1

printMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected