jorgebastida / jorgebastida/awslogs

TypeError: can't subtract offset-naive and offset-aware datetimes

Open
#97 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5k
Forks
342
PR merge metrics
No merged PRs in 30d

Description

Version: 0.5.0
Python: 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)]
boto3 version: 1.3.1
Platform: Darwin-15.6.0-x86_64-i386-64bit
Config: {'output_timestamp_enabled': False, 'output_group_enabled': True, 'end': 'Wed Oct 26 18:30:00 UTC 2016', 'log_group_name': '/aws/lambda/intentmedia_click', 'log_stream_name': 'ALL', 'aws_region': None, 'watch': False, 'aws_access_key_id': 'SENSITIVE', 'start': 'Wed Oct 26 18:15:00 UTC 2016', 'aws_profile': 'SENSITIVE', 'filter_pattern': None, 'aws_secret_access_key': 'SENSITIVE', 'output_ingestion_time_enabled': False, 'func': 'list_logs', 'aws_session_token': 'SENSITIVE', 'color_enabled': True, 'output_stream_enabled': True}
Args: ['/usr/local/bin/awslogs', 'get', '/aws/lambda/intentmedia_click', 'ALL', '--start=Wed Oct 26 18:15:00 UTC 2016', '--end=Wed Oct 26 18:30:00 UTC 2016']

Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/awslogs/bin.py", line 156, in main
logs = AWSLogs(**vars(options))
File "/Library/Python/2.7/site-packages/awslogs/core.py", line 52, in **init**
self.start = self.parse_datetime(kwargs.get('start'))
File "/Library/Python/2.7/site-packages/awslogs/core.py", line 256, in parse_datetime
return int(total_seconds(date - datetime(1970, 1, 1))) \* 1000
TypeError: can't subtract offset-naive and offset-aware datetimes

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.