home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82521c7
)
Fix syntax bug.
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 10 Mar 2015 04:25:51 +0000
(
05:25
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 10 Mar 2015 04:25:51 +0000
(
05:25
+0100)
roguelike-server
patch
|
blob
|
history
diff --git
a/roguelike-server
b/roguelike-server
index faea5aa4b7cac2561f3d3a3ddf0937484675d78d..ee1fefc03f09effa0d463b00824f3241763bb0cb 100755
(executable)
--- a/
roguelike-server
+++ b/
roguelike-server
@@
-526,7
+526,7
@@
def integer_test(val_string, min, max=None):
"""Return val_string if possible integer >= min and <= max, else None."""
try:
val = int(val_string)
- if val < min or (
if
max is not None and val > max):
+ if val < min or (max is not None and val > max):
raise ValueError
return val
except ValueError: