]> granicus.if.org Git - python/commitdiff
Add missing 'try:'. Patch by Rob W. W. Hooft, #101071 (closed.)
authorThomas Wouters <thomas@python.org>
Fri, 4 Aug 2000 08:46:59 +0000 (08:46 +0000)
committerThomas Wouters <thomas@python.org>
Fri, 4 Aug 2000 08:46:59 +0000 (08:46 +0000)
Lib/whichdb.py

index 5806118fc9e569dadd4331f3154ec3220777716a..4396321e991d6effa0ebeb79b1db8d03020ead2d 100644 (file)
@@ -26,6 +26,7 @@ def whichdb(filename):
         pass
 
     # Check for dumbdbm next -- this has a .dir and and a .dat file
+    try:
         f = open(filename + ".dat", "rb")
         f.close()
         f = open(filename + ".dir", "rb")