SoumyaJ commited on
Commit
412b084
·
verified ·
1 Parent(s): 1c92419

Update workflow_invocation.py

Browse files
Files changed (1) hide show
  1. workflow_invocation.py +3 -1
workflow_invocation.py CHANGED
@@ -33,7 +33,9 @@ class WorkflowInvocation:
33
  return response.text
34
  #print("Response status code:", response.json())
35
  except httpx.RequestError as e:
36
- print(f"Request error occurred: {e}")
 
 
37
  except httpx.HTTPStatusError as e:
38
  print(f"HTTP error occurred: {e.response.status_code} - {e.response.text}")
39
  except Exception as e:
 
33
  return response.text
34
  #print("Response status code:", response.json())
35
  except httpx.RequestError as e:
36
+ print(f"Request error occurred: {type(e).__name__}: {str(e)}")
37
+ import traceback
38
+ traceback.print_exc()
39
  except httpx.HTTPStatusError as e:
40
  print(f"HTTP error occurred: {e.response.status_code} - {e.response.text}")
41
  except Exception as e: