From: Christian Heller Date: Tue, 10 Mar 2015 04:25:51 +0000 (+0100) Subject: Fix syntax bug. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Byoutube_prefix%7D%7D%7B%7Bvideo_data.id_%7D%7D?a=commitdiff_plain;h=a5b35a816a4a52235aa5c56386193ebdf64619db;p=plomrogue Fix syntax bug. --- diff --git a/roguelike-server b/roguelike-server index faea5aa..ee1fefc 100755 --- 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: