Skip to content

Commit e9fdafa

Browse files
committed
updated except statement bug
1 parent 3f20b52 commit e9fdafa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ADS1115/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ADS1115:
102102
def __init__(self, address=0x48, ic=__IC_ADS1115, debug=False):
103103
try:
104104
self.i2c = smbus.SMBus(1)
105-
else:
105+
except:
106106
raise IOError("Could not find i2c device")
107107

108108
self.address = address

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from distutils.core import setup
1212

1313
setup(name='ADS1115',
14-
version='0.1.7',
14+
version='0.1.8',
1515
description='Python library for interacting with the ADS1115 Analog to Digital Converter.',
1616
url='http://github.com/dhhagan/Adafruit-Raspberry-Pi-Python-Code',
1717
author='David H Hagan',

0 commit comments

Comments
 (0)