From 7bfcf9a86553f7158673758cd500eece8e9cf132 Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Wed, 14 May 2025 22:31:44 +0300 Subject: Add wrong API error detection to noninteractive mode --- common/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/core.py b/common/core.py index c3e3495..e52cedd 100644 --- a/common/core.py +++ b/common/core.py @@ -28,9 +28,9 @@ def ask_digit_input(max_index): def is_app_url_correct(api_url, needs_auth, username,passwd): - """" + """ Checks if api url is correct, if so then returns the json - """" + """ print("Teostan API kutset...\n") try: if needs_auth: @@ -55,9 +55,9 @@ def is_app_url_correct(api_url, needs_auth, username,passwd): def inspect_json_top_level(json_data): - """" + """ Asks the user json item to extract and returns it as dict item-value pair, where item is name and value json path - """" + """ path = "" while True: -- cgit v1.2.3