Skip to content

Commit d2b4176

Browse files
committed
attribute error
1 parent e0451ce commit d2b4176

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/metastore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ def __init__(self, cache_dir_prefix: str, sync_off: bool = False) -> None:
173173
# We check startswith instead of equality because the version
174174
# will have already been appended by the time the cache dir is
175175
# passed here.
176+
self.db = None
176177
if cache_dir_prefix.startswith(os.devnull):
177-
self.db = None
178178
return
179179

180180
os.makedirs(cache_dir_prefix, exist_ok=True)

0 commit comments

Comments
 (0)