From 36d5049c611e459ecf8ec7b3be03746f290adacd Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 9 Jun 2015 10:10:06 +0200 Subject: [PATCH] More debug for the interfaces up crash debug --- .travis.yml | 1 + gns3server/utils/interfaces.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 126b783f..d2614c05 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ install: - pip install -rdev-requirements.txt script: + - ifconfig - py.test -v -s tests --cov gns3server --cov-report term-missing #branches: diff --git a/gns3server/utils/interfaces.py b/gns3server/utils/interfaces.py index 60c16c61..85d6d1bd 100644 --- a/gns3server/utils/interfaces.py +++ b/gns3server/utils/interfaces.py @@ -100,11 +100,13 @@ def is_interface_up(interface): return True return False except OSError as e: - raise aiohttp.web.HTTPInternalServerError(text="Exception when checking if {} is up: {}".format(interface, e)) + raise e + #raise aiohttp.web.HTTPInternalServerError(text="Exception when checking if {} is up: {}".format(interface, e)) else: - #TODO: Windows & OSX support + # TODO: Windows & OSX support return True + def interfaces(): """ Gets the network interfaces on this server.