Snippets Collections
Cypress.on('uncaught:exception', (err, runnable) => {
    // returning false here prevents Cypress from
    // failing the test
    return false
import re

text = 'this is a text'

    found ='is(.+?)text', text).group(1)
except AttributeError:
    # AAA, ZZZ not found in the original string
    found = '0 wtitle' # apply your error handling

=> a

Wed May 15 2024 03:36:16 GMT+0000 (Coordinated Universal Time)

#exception #false

Tue Jun 29 2021 16:20:27 GMT+0000 (Coordinated Universal Time)

#py #dataframe #pandas #text #exception

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension