Browse Source

Allow fractional values like !remind 1.5h

tags/v0.2
Ben Kurtovic 10 years ago
parent
commit
9f5fe6c9e0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/commands/remind.py

+ 1
- 1
earwigbot/commands/remind.py View File

@@ -75,7 +75,7 @@ class Remind(Command):
else: else:
factor = 1 factor = 1
try: try:
parsed = int(_evaluate(ast.parse(arg, mode="eval").body)) * factor
parsed = int(_evaluate(ast.parse(arg, mode="eval").body) * factor)
except (SyntaxError, KeyError): except (SyntaxError, KeyError):
raise ValueError(arg) raise ValueError(arg)
if parsed <= 0: if parsed <= 0:


Loading…
Cancel
Save