Skip to content

Commit

Permalink
add try cache for anysqlite import
Browse files Browse the repository at this point in the history
  • Loading branch information
karpetrosyan committed Oct 25, 2023
1 parent 626b695 commit 75ff760
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion hishel/_async/_storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
import typing as tp
from pathlib import Path

import anysqlite
try:
import anysqlite
except ImportError:
anysqlite = None

from httpcore import Request, Response

from hishel._serializers import BaseSerializer
Expand Down
6 changes: 5 additions & 1 deletion hishel/_sync/_storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
import typing as tp
from pathlib import Path

import sqlite3
try:
import sqlite3
except ImportError:
sqlite3 = None

from httpcore import Request, Response

from hishel._serializers import BaseSerializer
Expand Down

0 comments on commit 75ff760

Please sign in to comment.