mirror of https://github.com/MISP/PyMISP
Merge pull request #606 from paalbra/remove-traceback
Remove explicit traceback printingpull/608/head
commit
3fa546f3c9
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue