Skip to content

Commit

Permalink
rename _document file imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedsonpys committed Jan 2, 2023
1 parent ef04c26 commit da28691
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cookiedb/cookiedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from typing import Any

from . import exceptions
from ._document import JSONHandler, fernet
from . import _document as document


def required_database(method):
Expand Down Expand Up @@ -63,7 +63,7 @@ def __init__(
b64_key = _generate_fernet_key(key)

self._open_database = None
self._document = JSONHandler(b64_key, database_local)
self._document = document.Document(b64_key, database_local)

def checkout(self) -> str:
"""Return opened databsase name
Expand Down Expand Up @@ -93,7 +93,7 @@ def open(self, database_name: str) -> None:

try:
self._document.get_document(database_name)
except fernet.InvalidToken:
except document.fernet.InvalidToken:
raise exceptions.InvalidDatabaseKeyError('Invalid database key')

def close(self) -> None:
Expand Down

0 comments on commit da28691

Please sign in to comment.