Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
fix(openapi): add unhandled exceptions to except block
Browse files Browse the repository at this point in the history
  • Loading branch information
aexvir committed Mar 12, 2021
1 parent 0b6906e commit 88ae335
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zoo/repos/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from django.http import JsonResponse
from prance import ResolvingParser, ValidationError
from prance.util.url import ResolutionError
from prance.util.formats import ParseError
from yaml.composer import ComposerError
from yaml.scanner import ScannerError

Expand Down Expand Up @@ -72,6 +73,8 @@ def _parse_file(path, base=None):
ScannerError,
UnicodeDecodeError,
ValidationError,
ParseError,
TypeError,
) as err:
log.info(
"repos.views.openapi.invalid", path=str(path.relative_to(base)), error=err
Expand Down

0 comments on commit 88ae335

Please sign in to comment.