Handvask / handvask

Exception caught is very general PYL-W0703
Anti-pattern
Major
a year agoa year old
Catching too general exception Exception
157            )
158        )
159
160    except Exception as e:161        result["status"] = type(e).__name__
162        result["solution"] = str(e)
163
Catching too general exception Exception
 35    ):
 36        try:
 37            api_instance.create_namespaced_job(body=job_object, namespace="default")
 38        except Exception as e: 39            print(f"Got exception while creating job: {e}")
 40            return None
 41