Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vallbull committed Nov 1, 2023
1 parent 8dd1953 commit a67d12d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
from __future__ import annotations

from typing import Any
from typing import (
Any,
Type,
)

from aiohttp.client import ClientSession

from dl_file_uploader_lib import exc as file_upl_exc


def yadocs_error_to_file_uploader_exception(status_code: int, resp_info: dict) -> file_upl_exc.DLFileUploaderBaseError:
err_cls: Type[file_upl_exc.DLFileUploaderBaseError]

if status_code == 401:
err_cls = file_upl_exc.PermissionDenied
elif status_code == 404:
Expand Down

0 comments on commit a67d12d

Please sign in to comment.