diff --git a/CHANGES b/CHANGES index df61e8fe..0bf95ce9 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,5 @@ 2.0.6 + - bugfix: invalid values for idle timeout in profile.py would cause an error - bugfix: ASCII colly diz with extended chars was causing an error - deprecation: the "extras" subfolder of default script has been moved to https://github.com/x84-extras diff --git a/x84/default/profile.py b/x84/default/profile.py index 8f830d7e..0ec4f3a3 100644 --- a/x84/default/profile.py +++ b/x84/default/profile.py @@ -362,7 +362,10 @@ def do_command(term, session, inp, fields, tgt_user, point): if field_name == 'timeout': # coerce to integer, set, and if tgt_user is our current # user, then send new value for as engine event - timeout_val = int(inp) + try: + timeout_val = int(inp) + except ValueError: + return True if tgt_user.handle != 'anonymous': tgt_user[field_name] = timeout_val if tgt_user.handle == session.user.handle: