Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tmuxp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

import argcomplete
import kaptan

from libtmux.server import Server
from libtmux.common import has_required_tmux_version, which
from libtmux.exc import TmuxSessionExists
from libtmux.server import Server

from . import WorkspaceBuilder, config, exc, log, util
from .__about__ import __version__
Expand Down Expand Up @@ -283,7 +283,7 @@ def load_workspace(config_file, args):

if not args.detached:
builder.session.attach_session()
except exc.TmuxSessionExists as e:
except TmuxSessionExists as e:
if not args.detached and (
args.answer_yes or prompt_yes_no('%s Attach?' % e)
):
Expand Down
7 changes: 0 additions & 7 deletions tmuxp/exc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ class TmuxpException(Exception):
"""Base Exception for Tmuxp Errors."""


class TmuxSessionExists(TmuxpException):

"""Session does not exist in the server."""

pass


class ConfigError(TmuxpException):

"""Error parsing tmuxp configuration dict."""
Expand Down