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
pip install superviselyimport supervisely_lib as sly
worlds = ['Westeros', 'Azeroth', 'Middle Earth', 'Narnia']
sly_logger = sly.logger
for world in worlds:
sly_logger.info(f'Hello {world}!')Step 2 — Use [try: except] with traceback
Step 3 — Results
PreviousPart 1 — Hello world! [From your Python script to Supervisely APP]NextPart 3 — Site Packages [Customize your app]
Last updated