Skip to content

Commit 20ca672

Browse files
committed
Updating the notebooks
1 parent bca0892 commit 20ca672

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

chapters/chap13.ipynb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,18 @@
753753
"db"
754754
]
755755
},
756+
{
757+
"cell_type": "markdown",
758+
"id": "47685eb7",
759+
"metadata": {
760+
"tags": []
761+
},
762+
"source": [
763+
"If you get an error like `db type could not be determined`, the most likely cause is that a file with the same name already exists but is not a valid shelve database (for example, it may be corrupted or created by something else).\n",
764+
"\n",
765+
"In that case, the simplest solution is to delete the existing file and run the code again so that `shelve.open` can create a new database."
766+
]
767+
},
756768
{
757769
"cell_type": "markdown",
758770
"id": "0e4a2fb3",

0 commit comments

Comments
 (0)