Skip to content

Instantly share code, notes, and snippets.

@techedlaksh
Created May 17, 2017 18:16
Show Gist options
  • Select an option

  • Save techedlaksh/64975da6a25541cf7dc784b4b0d69264 to your computer and use it in GitHub Desktop.

Select an option

Save techedlaksh/64975da6a25541cf7dc784b4b0d69264 to your computer and use it in GitHub Desktop.

Revisions

  1. techedlaksh created this gist May 17, 2017.
    19 changes: 19 additions & 0 deletions try_execption.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    class LiFailed():
    pass

    class TrFailed():
    pass


    try:
    # whole code of li structure
    if a == " ":
    raise LiFailed
    except LiFailed:
    try:
    # whole code of tr
    if b == " ":
    raise TrFailed
    except TrFailed:
    try:
    # your code to exhaustive search of word "Shipping Weight"