Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
Merge ff8549f into 2e3ee82
Browse files Browse the repository at this point in the history
  • Loading branch information
tchellomello committed Dec 28, 2018
2 parents 2e3ee82 + ff8549f commit b3b4801
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ matrix:
env: TOXENV=py35
- python: "3.6"
env: TOXENV=py36
- python: "3.7"
env: TOXENV=py37
- python: "3.4.2"
env: TOXENV=lint
install: pip install -U tox coveralls
Expand Down
10 changes: 9 additions & 1 deletion pyarlo/utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# coding: utf-8
"""Implementation of Arlo utils."""
import logging
import time
from datetime import datetime as dt
import requests

_LOGGER = logging.getLogger(__name__)


def to_datetime(timestamp):
"""Return datetime object from timestamp."""
Expand All @@ -19,7 +22,12 @@ def pretty_timestamp(timestamp, date_format='%a-%m_%d_%y:%H:%M:%S'):

def http_get(url, filename=None):
"""Download HTTP data."""
ret = requests.get(url)
try:
ret = requests.get(url)
except requests.exceptions.SSLError as error:
_LOGGER.error(error)
return False

if ret.status_code != 200:
return False

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def readme():
setup(
name='pyarlo',
packages=['pyarlo'],
version='0.2.2',
version='0.2.3',
description='Python Arlo is a library written in Python 2.7/3x ' +
'that exposes the Netgear Arlo cameras as Python objects.',
long_description=readme(),
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27, py34, py35, py36, lint
envlist = py27, py34, py35, py36, py37, lint
skip_missing_interpreters = True

[testenv]
Expand Down

0 comments on commit b3b4801

Please sign in to comment.