Skip to content

Commit

Permalink
Fixed mispelling for "formatted" variable (#2984)
Browse files Browse the repository at this point in the history
  • Loading branch information
middleagedman authored and TheSavior committed Aug 8, 2016
1 parent 95902d6 commit 41ed10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokecli.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def main():
'api_error',
sender=bot,
level='info',
formmated='Log logged in, reconnecting in {:s}'.format(wait_time)
formatted='Log logged in, reconnecting in {:s}'.format(wait_time)
)
time.sleep(wait_time)
except ServerBusyOrOfflineException:
Expand Down

2 comments on commit 41ed10c

@Nihisil
Copy link
Contributor

@Nihisil Nihisil commented on 41ed10c Aug 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it working?

>>> 'Log logged in, reconnecting in {:s}'.format(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Unknown format code 's' for object of type 'int'

@TheSavior
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a different problem. I believe {:s} should be {:d}

Please sign in to comment.