Skip to content

Commit

Permalink
variable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmdhrumilmistry committed Feb 9, 2024
1 parent 0ba31d3 commit ac9c451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/offat/parsers/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, file_or_url: str, spec: dict | None = None) -> None:
def _populate_hosts(self):
servers = self.specification.get('servers', [])
hosts = []
if not hosts:
if not servers:
logger.error('Invalid Server Url: Server URLs are missing in spec file')
raise InvalidOpenAPIv3File('Server URLs Not Found in spec file')

Expand Down

0 comments on commit ac9c451

Please sign in to comment.