mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Correctly enable faulthandler for dev version
This commit is contained in:
parent
d9f94e653b
commit
7e7c8a5450
@ -28,7 +28,7 @@ except ImportError:
|
|||||||
# raven is not installed with deb package in order to simplify packaging
|
# raven is not installed with deb package in order to simplify packaging
|
||||||
RAVEN_AVAILABLE = False
|
RAVEN_AVAILABLE = False
|
||||||
|
|
||||||
from .version import __version__
|
from .version import __version__, __version_info__
|
||||||
from .config import Config
|
from .config import Config
|
||||||
from .utils.get_resource import get_resource
|
from .utils.get_resource import get_resource
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ log = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
# Dev build
|
# Dev build
|
||||||
if __version__[4] != 0:
|
if __version_info__[3] != 0:
|
||||||
import faulthandler
|
import faulthandler
|
||||||
|
|
||||||
# Display a traceback in case of segfault crash. Usefull when frozen
|
# Display a traceback in case of segfault crash. Usefull when frozen
|
||||||
|
Loading…
Reference in New Issue
Block a user