Skip to content

Commit

Permalink
Fixed ci build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
3coins committed May 27, 2022
1 parent 7400481 commit f87107e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jupyter_server/services/events/handlers.py
Expand Up @@ -4,7 +4,7 @@
"""
import logging
from datetime import datetime
from typing import Any, Dict, Optional, Union
from typing import Any, Dict, Optional

from jupyter_telemetry.eventlog import _skip_message
from pythonjsonlogger import jsonlogger
Expand Down Expand Up @@ -90,7 +90,7 @@ def get_timestamp(data: Dict[str, Any]) -> Optional[datetime]:
timestamp = datetime.strptime(data["timestamp"], "%Y-%m-%dT%H:%M:%S%zZ")
else:
timestamp = None
except Exception as e:
except Exception:
raise web.HTTPError(
400,
"""Failed to parse timestamp from JSON request body,
Expand Down
3 changes: 1 addition & 2 deletions tests/services/events/test_api.py
Expand Up @@ -2,7 +2,6 @@
import json
import logging
import pathlib
from datetime import datetime

import pytest
import tornado
Expand Down Expand Up @@ -58,7 +57,7 @@ async def test_subscribe_websocket(jp_ws_fetch, event_bus):
"event": {
"event_message": "Hello, world!"
},
"timestamp": "2022-05-26T12:50:00+00:00Z"
"timestamp": "2022-05-26T12:50:00+06:00Z"
}
"""

Expand Down

0 comments on commit f87107e

Please sign in to comment.