MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / as_dict

Method as_dict

asyncpg/exceptions/_base.py:156–162  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

154 return exccls, message, dct
155
156 def as_dict(self):
157 dct = {}
158 for f in type(self)._field_map.values():
159 val = getattr(self, f)
160 if val is not None:
161 dct[f] = val
162 return dct
163
164
165class PostgresError(PostgresMessage, Exception):

Callers 2

notice_callbMethod · 0.80
async_notice_callbMethod · 0.80

Calls

no outgoing calls

Tested by 2

notice_callbMethod · 0.64
async_notice_callbMethod · 0.64