Skip to content

Commit

Permalink
Fix possible NameError
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans committed Sep 18, 2020
1 parent e2f1cdf commit 98dcf96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions asyncpg/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ async def _introspect_type(self, typename, schema):
)
if rows:
typeinfo = rows[0]
else:
typeinfo = None
else:
typeinfo = await self.fetchrow(
introspection.TYPE_BY_NAME, typename, schema)
Expand Down

0 comments on commit 98dcf96

Please sign in to comment.