Changeset - e4bdc5370fa7
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 6 years ago 2019-06-07 23:41:42
drewp@bigasterisk.com
collector erroring
Ignore-this: 42fc8af29f4f35cf8d6a855ed5204041
2 files changed with 7 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/collector/collector.py
Show inline comments
 
@@ -37,8 +37,10 @@ def outputMap(
 
            except Exception:
 
                log.warn('dev %r :dmxUniverse %r', dev, universe)
 
                raise
 
            dmxBase = DmxIndex(
 
                cast(Literal, graph.value(dev, L9['dmxBase'])).toPython())
 
            base = graph.value(dev, L9['dmxBase'])
 
            if base is None:
 
                raise ValueError('no :dmxBase for %s' % dev)
 
            dmxBase = DmxIndex(cast(Literal, base).toPython())
 
            for row in graph.objects(dc, L9['attr']):
 
                outputAttr = cast(OutputAttr,
 
                                  graph.value(row, L9['outputAttr']))
light9/collector/output.py
Show inline comments
 
@@ -136,6 +136,9 @@ class Udmx(BackgroundLoopOutput):
 
                    self._writeOverflow += 1
 
                    return
 

	
 
                if e.errno == 19:  # no such dev; usb hw restarted
 
                    reactor.crash()
 

	
 
                msg = 'usb: sending %s bytes to %r; error %r' % (len(buf),
 
                                                                 self.uri, e)
 
                log.warn(msg)
0 comments (0 inline, 0 general)