diff --git a/rhodecode/lib/utils2.py b/rhodecode/lib/utils2.py --- a/rhodecode/lib/utils2.py +++ b/rhodecode/lib/utils2.py @@ -182,7 +182,7 @@ def safe_int(val, default=None): try: val = int(val) - except ValueError: + except (ValueError, TypeError): val = default return val