From 7e7c8a54509ed863217b879c1f0c456c66e6b0fa Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 5 Nov 2015 10:50:37 +0100 Subject: [PATCH] Correctly enable faulthandler for dev version --- gns3server/crash_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/crash_report.py b/gns3server/crash_report.py index 3f8e03d9..7d11b138 100644 --- a/gns3server/crash_report.py +++ b/gns3server/crash_report.py @@ -28,7 +28,7 @@ except ImportError: # raven is not installed with deb package in order to simplify packaging RAVEN_AVAILABLE = False -from .version import __version__ +from .version import __version__, __version_info__ from .config import Config from .utils.get_resource import get_resource @@ -37,7 +37,7 @@ log = logging.getLogger(__name__) # Dev build -if __version__[4] != 0: +if __version_info__[3] != 0: import faulthandler # Display a traceback in case of segfault crash. Usefull when frozen