diff options
| author | Shyam Sunder | 2020-09-01 14:06:22 -0400 |
|---|---|---|
| committer | Shyam Sunder | 2020-09-01 14:07:39 -0400 |
| commit | 0dd427755b601da8dadf9af1a34ecad03f8446f9 (patch) | |
| tree | 7f7e072132a834f1ac64e973a4ef1fd8d5a46a94 /server/szurubooru/func/net.py | |
| parent | 67a5dd7c18758304d42716383eb9497a143142b9 (diff) | |
client+server: fix linter issues due to updated pre-commit hooks
Diffstat (limited to 'server/szurubooru/func/net.py')
| -rw-r--r-- | server/szurubooru/func/net.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/szurubooru/func/net.py b/server/szurubooru/func/net.py index bb43ddd..caa3fba 100644 --- a/server/szurubooru/func/net.py +++ b/server/szurubooru/func/net.py @@ -68,7 +68,8 @@ def post_to_webhooks(payload: Dict[str, Any]) -> List[int]: for webhook in config.config["webhooks"] or []: req = urllib.request.Request(webhook) req.data = json.dumps( - payload, default=lambda x: x.isoformat("T") + "Z", + payload, + default=lambda x: x.isoformat("T") + "Z", ).encode("utf-8") req.add_header("Content-Type", "application/json") try: |