summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-04 08:46:59 (GMT)
committerThomas Wouters <thomas@python.org>2000-08-04 08:46:59 (GMT)
commit3027b15c8e2a2d8098388a4d28842934025f861e (patch)
treebc3af7e34823df959053d3ec2351865642bdd0c9 /Lib
parent5a007693c141536a04d305f3a2162c625dfbd501 (diff)
downloadcpython-3027b15c8e2a2d8098388a4d28842934025f861e.zip
cpython-3027b15c8e2a2d8098388a4d28842934025f861e.tar.gz
cpython-3027b15c8e2a2d8098388a4d28842934025f861e.tar.bz2
Add missing 'try:'. Patch by Rob W. W. Hooft, #101071 (closed.)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/whichdb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/whichdb.py b/Lib/whichdb.py
index 5806118..4396321 100644
--- a/Lib/whichdb.py
+++ b/Lib/whichdb.py
@@ -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")