Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Error and Syntax on Python2 and 3 #11

Open
NhlalukoG opened this issue Feb 16, 2018 · 1 comment
Open

Type Error and Syntax on Python2 and 3 #11

NhlalukoG opened this issue Feb 16, 2018 · 1 comment

Comments

@NhlalukoG
Copy link

So the script actually executes on Py2 but

[2018-02-16 14:55:48] [INFO] Starting server on mcn.pool.minergate.com:45640
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "miner.py", line 648, in _handle_incoming_rpc
output += '\n ' + e.reply
TypeError: cannot concatenate 'str' and 'dict' objects


Python3

File "miner.py", line 327
except Exception, e:
^
SyntaxError: invalid syntax

@xeo1995
Copy link

xeo1995 commented Nov 20, 2018

replace output += '\n ' + e.reply
by output += '\n ' + str(e.reply)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants