Part 2 — Errors handling [Catching all bugs]
In this part, we will work with bugs. We will catch them.
Table of contents
Step 1 — Supervisely logger
Supervisely has a logger. It is a wrapper over Python's built-in logging package.
First thing we need to do is install Supervisely Python SDK to your environment:
Let's take the code from Part 1 as a basis and add a logger:
Step 2 — Use [try: except] with traceback
To handle errors, you can use the [try: except]
construction
src/main.py
Step 3 — Results
PreviousPart 1 — Hello world! [From your Python script to Supervisely APP]NextPart 3 — Site Packages [Customize your app]
Last updated