[Erp5-dev] Modifying ZODB from zopectl debug - is it possible?

Pelletier Vincent vincent at nexedi.com
Fri Sep 28 19:26:54 CEST 2007


Le Vendredi 28 Septembre 2007 17:01, Jérome Perrin a écrit :
> Yes it should, but if you get a conflict error, you have to restart the
> transaction correctly.

BTW, when I have to track down a problem where an exception gets raized, I use 
the following code:

try:
  [code to check]
except:
  import pdb; pdb.set_trace()
  raise

Thanks to the last raise, everything stays fine even if I mistakenly let code 
execution continue...
Probably a good habit to take ;) .

-- 
Vincent Pelletier



More information about the Erp5-dev mailing list