Skip to content

Commit

Permalink
Fixed import error for new UTC object in python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
EBGlom committed Aug 8, 2024
1 parent b7c7784 commit c0a6092
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modeltestsdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
import requests_cache
import logging
import numpy as np
from datetime import datetime, UTC
try:
from datetime import UTC
except ImportError:
from datetime import timezone
UTC = timezone.utc
from datetime import datetime
from .api import (TimeseriesAPI, CampaignAPI, SensorAPI, TestAPI, FloaterTestAPI, WindCalibrationAPI,
WaveCalibrationAPI, TagsAPI, FloaterConfigAPI)
from .query import Query
Expand Down

0 comments on commit c0a6092

Please sign in to comment.