import sublime
from ..common import util


MYPY = False
if MYPY:
    from typing import Sequence


class GitSavvyError(Exception):
    def __init__(self, msg, *args, cmd=None, stdout="", stderr="", **kwargs):
        # type: (str, object, Sequence[str], str, str, object) -> None
        super(GitSavvyError, self).__init__(msg, *args)
        self.message = msg
        self.cmd = cmd
        self.stdout = stdout
        self.stderr = stderr
        if msg:
            if kwargs.get('show_panel', True):
                util.log.display_panel(sublime.active_window(), msg)
            if kwargs.get('show_status', False):
                sublime.active_window().status_message(msg)
            util.debug.log_error(msg)


class FailedGithubRequest(GitSavvyError):
    pass


class FailedGitLabRequest(GitSavvyError):
    pass

import sublime
from ..common import util


MYPY = False
if MYPY:
    from typing import Sequence


class GitSavvyError(Exception):
    def __init__(self, msg, *args, cmd=None, stdout="", stderr="", **kwargs):
        # type: (str, object, Sequence[str], str, str, object) -> None
        super(GitSavvyError, self).__init__(msg, *args)
        self.message = msg
        self.cmd = cmd
        self.stdout = stdout
        self.stderr = stderr
        if msg:
            if kwargs.get('show_panel', True):
                util.log.display_panel(sublime.active_window(), msg)
            util.debug.log_error(msg)


class FailedGithubRequest(GitSavvyError):
    pass


class FailedGitLabRequest(GitSavvyError):
    pass

Remove unused `show_status` feature of `GitSavvyError`
Remove unused `show_status` feature of `GitSavvyError`
