Skip to content

Commit

Permalink
0.0.164
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Jun 27, 2024
1 parent 746f3b5 commit 5f6bdb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions orso/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@

from orso.exceptions import MissingDependencyError

try:
import pandas
except ImportError:
pandas = None


def retry(
max_tries: int = 3,
Expand Down Expand Up @@ -617,6 +612,7 @@ def parse_iso(value):
# YYYY-MM-DD HH:MM:SS <- date and time with seconds
# YYYY-MM-DD HH:MM:SS.mmmm <- date and time with milliseconds
#

# If the last character is a Z, we ignore it.
# If we can't parse as a date we return None rather than error
try:
Expand All @@ -637,7 +633,7 @@ def parse_iso(value):
tzinfo=None
)

if pandas and hasattr(value, "to_pydatetime"):
if hasattr(value, "to_pydatetime"):
return value.to_pydatetime()

if input_type == datetime.datetime:
Expand Down
2 changes: 1 addition & 1 deletion orso/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__: str = "0.0.163"
__version__: str = "0.0.164"
__author__: str = "@joocer"

0 comments on commit 5f6bdb6

Please sign in to comment.