mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-08 03:15:40 +00:00
remove traceback
This commit is contained in:
parent
d23a57da50
commit
b197491a86
@ -4,7 +4,6 @@ import json
|
|||||||
import requests
|
import requests
|
||||||
import hashlib
|
import hashlib
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import traceback
|
|
||||||
|
|
||||||
from collections.abc import Iterable
|
from collections.abc import Iterable
|
||||||
from distutils.version import StrictVersion
|
from distutils.version import StrictVersion
|
||||||
@ -113,7 +112,6 @@ def fetch_json(remote_url,
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise e
|
raise e
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_exc()
|
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
'Error while loading JSON data from {0}'.format(remote_url)) from e
|
'Error while loading JSON data from {0}'.format(remote_url)) from e
|
||||||
return data
|
return data
|
||||||
|
Loading…
Reference in New Issue
Block a user