Skip to content

TypeError: '<' not supported between instances of 'str' and 'int' #3441

@sentry

Description

@sentry

Sentry Issue: BALROG-PROD-PUBLIC-6F

TypeError: '<' not supported between instances of 'str' and 'int'
(3 additional frame(s) were not displayed)
...
  File "auslib/db.py", line 1879, in getRulesMatchingQuery
    if not matchVersion(rule["version"], updateQuery["version"], get_version_class(updateQuery["product"])):
  File "auslib/util/rulematching.py", line 108, in matchVersion
    if version_compare(queryVersion, rule, versionClass):
  File "auslib/util/comparison.py", line 75, in version_compare
    return opfunc(value, operand)
  File "auslib/util/versions.py", line 21, in __eq__
    c = self._cmp(other)
  File "auslib/util/versions.py", line 150, in _cmp
    if self.version < other.version:

TypeError: '<' not supported between instances of 'str' and 'int'
(11 additional frame(s) were not displayed)
...
  File "auslib/db.py", line 1879, in getRulesMatchingQuery
    if not matchVersion(rule["version"], updateQuery["version"], get_version_class(updateQuery["product"])):
  File "auslib/util/rulematching.py", line 108, in matchVersion
    if version_compare(queryVersion, rule, versionClass):
  File "auslib/util/comparison.py", line 75, in version_compare
    return opfunc(value, operand)
  File "auslib/util/versions.py", line 21, in __eq__
    c = self._cmp(other)
  File "auslib/util/versions.py", line 150, in _cmp
    if self.version < other.version:

Example URL: https://aus5.mozilla.org/json/2/FirefoxVPN/2_28/Darwin_x86/release-cdntest/15.5/update.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    publicpublic Balrog app/api (aus5.mozilla.org; aus-api.mozilla.org)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions