comparison Control.py @ 14:8ada8d5cca15

Move OWReadError to MonitorDev since that's where it's raised.
author darius
date Tue, 23 Oct 2007 01:05:21 +0000
parents 24c7e85c3efd
children 0ec70371cfcf
comparison
equal deleted inserted replaced
13:3dad7161af87 14:8ada8d5cca15
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 ############################################################################ 3 ############################################################################
4 # Control class for beermon 4 # Control class for beermon
5 # 5 #
6 # $Id: Control.py,v 1.2 2007/09/29 14:51:20 darius Exp $ 6 # $Id: Control.py,v 1.3 2007/10/23 01:05:21 darius Exp $
7 # 7 #
8 # Depends on: Python 2.3 (I think) 8 # Depends on: Python 2.3 (I think)
9 # 9 #
10 ############################################################################ 10 ############################################################################
11 # 11 #
33 # SUCH DAMAGE. 33 # SUCH DAMAGE.
34 # 34 #
35 ############################################################################ 35 ############################################################################
36 36
37 import threading, ConfigParser, time 37 import threading, ConfigParser, time
38
39 class OWReadError(Exception):
40 """Raised when we failed to read from a 1-wire device, could be a timeout
41 or the device is non-existent, etc"""
42 pass
43 38
44 class ThreadDied(Exception): 39 class ThreadDied(Exception):
45 """Raised when the monitor thread has died for some reason""" 40 """Raised when the monitor thread has died for some reason"""
46 pass 41 pass
47 42