Skip to content

Commit

Permalink
Fix the error: TypeError: Can't convert 'int' object to str implicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
procmail committed Aug 20, 2017
1 parent ec634ac commit 664ce79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/py/exchanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def underline(s): return style(s, '\033[4m')
def log(*args):
print(' '.join([str(arg) for arg in args]))

log('The ccxt library supports', green(len(ccxt.exchanges)), 'exchanges:')
log('The ccxt library supports', green(str(len(ccxt.exchanges))), 'exchanges:')

# output a table of all exchanges
log(pink('{:<15} {:<15} {:<15}'.format('id', 'name', 'URL')))
Expand Down

0 comments on commit 664ce79

Please sign in to comment.