except sqlite3.Error as e:

G

gert

except sqlite3.Error as e:
    ERROR = "Error " + ...

how does except work in python3 ?

except sqlite3.Error as e:
ERROR = "Error " + e.args[0]

oops i thought it did not work somehow in 3.0 but it does :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,299
Messages
2,571,545
Members
48,299
Latest member
Ruby87897

Latest Threads

Top