Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 5379914

Browse files
author
Jan Xie
committed
fix: db is a greentlet service which always eval to None :(
1 parent 46775e0 commit 5379914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
class Env(object):
8888

8989
def __init__(self, db=None, config=None, global_config=None):
90-
self.db = db or EphemDB()
90+
self.db = EphemDB() if db is None else db
9191
assert isinstance(self.db, BaseDB)
9292
self.config = config or dict(default_config)
9393
self.global_config = global_config or dict()

0 commit comments

Comments
 (0)