← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 1734: Fix OperationalError, reported by Janek in https://bugs.launchpad.net/yade/+bug/416906

 

------------------------------------------------------------
revno: 1734
committer: Václav Šmilauer <vaclav@flux>
branch nick: trunk
timestamp: Mon 2009-08-24 20:07:45 +0200
message:
  Fix OperationalError, reported by Janek in https://bugs.launchpad.net/yade/+bug/416906
modified:
  py/pack.py


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription.
=== modified file 'py/pack.py'
--- py/pack.py	2009-08-22 19:26:41 +0000
+++ py/pack.py	2009-08-24 18:07:45 +0000
@@ -263,7 +263,7 @@
 		conn=sqlite3.connect(memoizeDb); c=conn.cursor();
 		try:
 			c.execute('select radius,rRelFuzz,dimx,dimy,dimz,N,timestamp,periodic from packings order by N')
-		except OperationalError:
+		except sqlite3.OperationalError:
 			raise RuntimeError("ERROR: database",memoizeDb," not compatible with randomDensePack (deprecated format or not db created by randomDensePack)")
 		for row in c:
 			R,rDev,X,Y,Z,NN,timestamp,isPeri=row[0:8]; scale=radius/R