From 4180882fb741f6ba4fb5b47590a3518fbd005fb2 Mon Sep 17 00:00:00 2001 From: Steffen Schwebel Date: Fri, 21 May 2021 15:10:17 +0200 Subject: [PATCH] show traceback --- powerdnsadmin/lib/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/powerdnsadmin/lib/utils.py b/powerdnsadmin/lib/utils.py index d7f20a4..2aa4d22 100644 --- a/powerdnsadmin/lib/utils.py +++ b/powerdnsadmin/lib/utils.py @@ -4,6 +4,7 @@ import json import requests import hashlib import ipaddress +import traceback from collections.abc import Iterable from distutils.version import StrictVersion @@ -105,6 +106,7 @@ def fetch_json(remote_url, try: data = json.loads(r.content.decode('utf-8')) except Exception as e: + traceback.print_exc() raise RuntimeError( 'Error while loading JSON data from {0}'.format(remote_url)) from e return data