diff --git a/tests/test_registry.py b/tests/test_registry.py index c0e4e879..2fcd82d6 100644 --- a/tests/test_registry.py +++ b/tests/test_registry.py @@ -66,7 +66,7 @@ def __test_context (): successful_count = successful_count + 1 except Exception as e: logger.debug (f"App {app_id} failed. {e}") - traceback.print_exc () + traceback.print_exc() failed.append (app_id) failed_count = failed_count + 1 logger.info (f"{product.upper()} had {successful_count} successful apps and {failed_count} failed apps.") diff --git a/tycho/__init__.py b/tycho/__init__.py index d0a4ce44..261292f2 100644 --- a/tycho/__init__.py +++ b/tycho/__init__.py @@ -1,2 +1,2 @@ -VERSION = "1.13.0" +VERSION = "1.13.1" diff --git a/tycho/actions.py b/tycho/actions.py index cd257bba..487ffc8e 100644 --- a/tycho/actions.py +++ b/tycho/actions.py @@ -54,7 +54,7 @@ def validate(self, request, component): jsonschema.validate(request, to_validate) except jsonschema.exceptions.ValidationError as error: logger.error(f"ERROR: {str(error)}") - traceback.print_exc (error) + traceback.print_exc() def create_response(self, result=None, status='success', message='', exception=None): """ Create a response. Handle formatting and modifiation of status for exceptions. """ diff --git a/tycho/api.py b/tycho/api.py index 63111aae..d8274914 100644 --- a/tycho/api.py +++ b/tycho/api.py @@ -81,13 +81,13 @@ def validate (self, request, component): jsonschema.validate(request.json, to_validate) except jsonschema.exceptions.ValidationError as error: app.logger.error (f"ERROR: {str(error)}") - traceback.print_exc (error) + traceback.print_exc() abort(Response(str(error), 400)) def create_response (self, result=None, status='success', message='', exception=None): """ Create a response. Handle formatting and modifiation of status for exceptions. """ if exception: - traceback.print_exc () + traceback.print_exc() status='error' exc_type, exc_value, exc_traceback = sys.exc_info() message = f"{exception.args[0]} {''.join (exception.args[1])}" \ diff --git a/tycho/client.py b/tycho/client.py index a0657d85..e8479afd 100644 --- a/tycho/client.py +++ b/tycho/client.py @@ -325,7 +325,7 @@ def down (self, names): else: print (json.dumps (response, indent=2)) except Exception as e: - traceback.print_exc (e) + traceback.print_exc() def patch(self, mod_items): """ @@ -424,7 +424,7 @@ def get_client (self, name="tycho-api", namespace="default", default_url="http:/ url = f"http://{ip}:{port}" except ValueError as e: logger.error ("unable to get minikube ip address") - traceback.print_exc (e) + traceback.print_exc() print(f"URL: {url}") except Exception as e: url = default_url diff --git a/tycho/config.py b/tycho/config.py index 18b3b926..cff5d854 100644 --- a/tycho/config.py +++ b/tycho/config.py @@ -35,7 +35,7 @@ def __init__(self, config="conf/tycho.yaml"): self.conf['tycho']['compute']['platform']['kube']['ip'] = ip except ValueError as e: logger.error ("unable to get minikube ip address") - traceback.print_exc (e) + traceback.print_exc() def __setitem__(self, key, val): self.conf.__setitem__(key, val) diff --git a/tycho/kube.py b/tycho/kube.py index 912dad2c..2595a4a7 100644 --- a/tycho/kube.py +++ b/tycho/kube.py @@ -158,7 +158,7 @@ def start (self, system, namespace="default"): break break except Exception as e: - traceback.print_exc (e) + traceback.print_exc() exc_type, exc_value, exc_traceback = sys.exc_info() text = traceback.format_exception( exc_type, exc_value, exc_traceback) @@ -367,7 +367,7 @@ def delete (self, name, namespace="default"): namespace=namespace) except ApiException as e: - traceback.print_exc (e) + traceback.print_exc() exc_type, exc_value, exc_traceback = sys.exc_info() text = traceback.format_exception( exc_type, exc_value, exc_traceback)