pass is a no-op in Python. You need it for empty blocks because
try:
# Something that throws exception
catch:
# continue other stuff
is a syntax error. In JavaScript you can just use an empty catch block.
try {
// Something that throws exception
}
catch (e) {}