Skip to content

Commit

Permalink
Merge pull request #612 from crim-ca/type-cgi-webob
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault authored Apr 2, 2024
2 parents 29059c7 + 6395d68 commit 278dc7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weaver/vault/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
if TYPE_CHECKING:
from typing import Optional

import cgi
from pyramid.httpexceptions import HTTPException
from pyramid.request import Request
from webob.compat import cgi_FieldStorage

LOGGER = logging.getLogger(__name__)

Expand All @@ -47,7 +47,7 @@ def upload_file(request):
"""
error = "File missing."
try:
req_file = request.POST.get("file") # type: Optional[cgi_FieldStorage]
req_file = request.POST.get("file") # type: Optional[cgi.FieldStorage]
req_fs = getattr(req_file, "file", None) # type: Optional[BufferedIOBase]
except Exception as exc:
error = str(exc)
Expand Down

0 comments on commit 278dc7c

Please sign in to comment.