except sqlite3.Error as e:

gert gert.cuykens at gmail.com
Fri Jan 16 02:03:50 CET 2009


On Jan 16, 1:47 am, gert <gert.cuyk... at gmail.com> wrote:
> 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 :)



More information about the Python-list mailing list