Skip to content

Commit

Permalink
Always enable raven if running from snap
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
  • Loading branch information
cmatsuoka committed Mar 18, 2019
1 parent b484779 commit 6be794f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions snapcraft/cli/_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import snapcraft
from snapcraft.config import CLIConfig as _CLIConfig
from snapcraft.internal import errors
from snapcraft.internal.common import is_snap
from snapcraft.internal.build_providers.errors import ProviderExecError

# raven is not available on 16.04
Expand Down Expand Up @@ -114,7 +113,7 @@ def exception_handler( # noqa: C901
is_snapcraft_reportable_error = issubclass(
exception_type, errors.SnapcraftReportableError
)
is_raven_setup = RavenClient is not None if is_snap() else False
is_raven_setup = snapcraft.internal.common.is_snap()
is_connected_to_tty = (
# used by inner instance, variable set by outer instance
(distutils.util.strtobool(os.getenv("SNAPCRAFT_HAS_TTY", "n")) == 1)
Expand Down

0 comments on commit 6be794f

Please sign in to comment.