You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try:
if logger.isEnabledFor(logging.DEBUG):
logger.debug("Writing buffer of %d byts" % len(buf))
pylibg15.write_pixmap(buf)
except IOError as (errno, strerror): #<- Crashes on this line
Slogger.error("Failed to send buffer. %d: %s" % ( errno, strerror ) )
traceback.print_exc(file=sys.stderr)
self.disconnect()
This is the traceback.
Traceback (most recent call last):
File "/usr/local/bin/pydbgr", line 9, in
load_entry_point('pydbgr==0.1.5', 'console_scripts', 'pydbgr')()
File "/usr/local/lib/python2.7/dist-packages/pydbgr-0.1.5-py2.7.egg/pydbgr/cli.py", line 337, in main
normal_termination = dbg.run_script(mainpyfile)
File "/usr/local/lib/python2.7/dist-packages/pydbgr-0.1.5-py2.7.egg/pydbgr/debugger.py", line 207, in run_script
execfile(self.mainpyfile, globals_, locals_)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/run.py", line 234, in
main()
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/run.py", line 82, in main
warnings += check_file(path, complexity)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/run.py", line 27, in check_file
warnings += pyflakes.checkPath(path)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 656, in checkPath
return check(open(filename, 'U').read() + '\n', filename)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 707, in check
w = Checker(tree, filename)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 192, in init
self._runDeferred(self._deferredFunctions)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 228, in _runDeferred
handler()
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 571, in runFunction
self.handleNode(stmt, node)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 299, in handleNode
handler(node)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 277, in handleChildren
self.handleNode(node, tree)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 299, in handleNode
handler(node)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 277, in handleChildren
self.handleNode(node, tree)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 299, in handleNode
handler(node)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 277, in handleChildren
self.handleNode(node, tree)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 299, in handleNode
handler(node)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 340, in EXCEPTHANDLER
name = node.name.id
AttributeError: 'Tuple' object has no attribute 'id'
I agree that this particular piece of code is VERY poor and only kind of works. But it's not my code, and pyflakes should handle it since it technically is valid syntax.
The text was updated successfully, but these errors were encountered:
Original report by psychicsurgeon on Launchpad:
This is the code in question
try:
if logger.isEnabledFor(logging.DEBUG):
logger.debug("Writing buffer of %d byts" % len(buf))
pylibg15.write_pixmap(buf)
except IOError as (errno, strerror): #<- Crashes on this line
Slogger.error("Failed to send buffer. %d: %s" % ( errno, strerror ) )
traceback.print_exc(file=sys.stderr)
self.disconnect()
This is the traceback.
Traceback (most recent call last):
File "/usr/local/bin/pydbgr", line 9, in
load_entry_point('pydbgr==0.1.5', 'console_scripts', 'pydbgr')()
File "/usr/local/lib/python2.7/dist-packages/pydbgr-0.1.5-py2.7.egg/pydbgr/cli.py", line 337, in main
normal_termination = dbg.run_script(mainpyfile)
File "/usr/local/lib/python2.7/dist-packages/pydbgr-0.1.5-py2.7.egg/pydbgr/debugger.py", line 207, in run_script
execfile(self.mainpyfile, globals_, locals_)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/run.py", line 234, in
main()
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/run.py", line 82, in main
warnings += check_file(path, complexity)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/run.py", line 27, in check_file
warnings += pyflakes.checkPath(path)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 656, in checkPath
return check(open(filename, 'U').read() + '\n', filename)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 707, in check
w = Checker(tree, filename)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 192, in init
self._runDeferred(self._deferredFunctions)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 228, in _runDeferred
handler()
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 571, in runFunction
self.handleNode(stmt, node)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 299, in handleNode
handler(node)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 277, in handleChildren
self.handleNode(node, tree)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 299, in handleNode
handler(node)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 277, in handleChildren
self.handleNode(node, tree)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 299, in handleNode
handler(node)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 277, in handleChildren
self.handleNode(node, tree)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 299, in handleNode
handler(node)
File "/usr/local/lib/python2.7/dist-packages/flake8-1.5-py2.7.egg/flake8/pyflakes.py", line 340, in EXCEPTHANDLER
name = node.name.id
AttributeError: 'Tuple' object has no attribute 'id'
I agree that this particular piece of code is VERY poor and only kind of works. But it's not my code, and pyflakes should handle it since it technically is valid syntax.
The text was updated successfully, but these errors were encountered: