Merge pull request #606 from paalbra/remove-traceback

Remove explicit traceback printing
pull/608/head
Raphaël Vinot 2020-07-28 11:31:33 +02:00 committed by GitHub
commit 3fa546f3c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -14,7 +14,6 @@ import re
from uuid import UUID from uuid import UUID
import warnings import warnings
import sys import sys
import traceback
import copy import copy
from . import __version__, everything_broken from . import __version__, everything_broken
@ -137,7 +136,6 @@ class PyMISP:
self._current_user_settings: List[MISPUserSetting] self._current_user_settings: List[MISPUserSetting]
self._current_user, self._current_role, self._current_user_settings = self.get_user(pythonify=True, expanded=True) self._current_user, self._current_role, self._current_user_settings = self.get_user(pythonify=True, expanded=True)
except Exception as e: except Exception as e:
traceback.print_exc()
raise PyMISPError(f'Unable to connect to MISP ({self.root_url}). Please make sure the API key and the URL are correct (http/https is required): {e}') raise PyMISPError(f'Unable to connect to MISP ({self.root_url}). Please make sure the API key and the URL are correct (http/https is required): {e}')
try: try: