diff --git a/src/hyprshade/cli/__init__.py b/src/hyprshade/cli/__init__.py index cfae331..183adf2 100644 --- a/src/hyprshade/cli/__init__.py +++ b/src/hyprshade/cli/__init__.py @@ -74,7 +74,7 @@ def main(): # pragma: no cover f"{click.style('Error', fg='red')}: {click.style(message, bold=True)}", err=True, ) - if e.__notes__: + if getattr(e, "__notes__", None): for note in e.__notes__: click.echo(f"{click.style('Note', bold=True)}: {note}", err=True) click.secho("Use --verbose to see the full traceback", fg="yellow", err=True)