Skip to content
This repository was archived by the owner on Jun 5, 2018. It is now read-only.

Commit c222f7d

Browse files
committed
also limit currency name len (semarie)
1 parent 81b98f9 commit c222f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rhonmod/coin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def btc_to_eur():
2626

2727

2828
def reply(args):
29-
if len(args) < 2:
29+
if len(args) < 2 or len(args[1]) > 5:
3030
return 'usage: coin <currency> [amount]'
3131

3232
e = btc_to_eur() # get current EUR price for 1 BTC

0 commit comments

Comments
 (0)