Skip to content

Commit

Permalink
Report missing terminal error more nicely
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 30, 2024
1 parent 80e6f16 commit cc46cb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plextraktsync/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def wrap(*args, **kwargs):

try:
cmd(*args, **kwargs)
except EOFError as e:
raise ClickException(f"Program requested terminal, No terminal is connected: {e}")
except ClickException as e:
from plextraktsync.factory import logger
logger.fatal(f"Error running {name} command: {str(e)}")
Expand Down

0 comments on commit cc46cb2

Please sign in to comment.