Skip to content

Commit

Permalink
Ignore coverage when PyYAML is not installed (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Feb 1, 2022
1 parent 02560a5 commit c4af0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uvicorn/config.py
Expand Up @@ -22,7 +22,7 @@

try:
import yaml
except ImportError:
except ImportError: # pragma: no cover
# If the code below that depends on yaml is exercised, it will raise a NameError.
# Install the PyYAML package or the uvicorn[standard] optional dependencies to
# enable this functionality.
Expand Down

0 comments on commit c4af0b7

Please sign in to comment.