Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/hugapi/hug
/ cleanup
Method
cleanup
examples/smtp_envelope_example.py:14–18 ·
view source on GitHub ↗
(self, exception=None)
Source
from the content-addressed store, hash-verified
12
self.envelopes_to_send.append(envelope)
13
14
def
cleanup(self, exception=None):
15
if
exception:
16
return
17
for
envelope in self.envelopes_to_send:
18
self.smtp.send(envelope)
19
20
21
@hug.get(
"/hello"
)
Callers
1
cleanup_parameters
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected