Skip to content

Commit

Permalink
Move bson import for dependency compatibility (#2118)
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs authored Jul 20, 2024
1 parent 49dd100 commit f3283f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion optimade/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from traceback import print_exc
from typing import TYPE_CHECKING, Optional

import bson.json_util
from requests.exceptions import SSLError

if TYPE_CHECKING:
Expand All @@ -35,6 +34,8 @@ def insert_from_jsonl(jsonl_path: Path) -> None:
"""
from collections import defaultdict

import bson.json_util

from optimade.server.routers import ENTRY_COLLECTIONS

batch = defaultdict(list)
Expand Down

0 comments on commit f3283f5

Please sign in to comment.