Skip to content

Commit 0607200

Browse files
Applied suggestion
1 parent 352d21f commit 0607200

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

bugzilla/base.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,13 +1083,8 @@ def _alias_or_int(_v):
10831083

10841084
if (include_fields is not None and aliases
10851085
and "alias" not in include_fields):
1086-
# Extra field to prevent sorting (see below) from cause an error
1087-
try:
1088-
include_fields.append("alias")
1089-
except AttributeError:
1090-
# Just in case somebody passed in a tuple or another non-list
1091-
# type
1092-
include_fields = list(include_fields) + ["alias"]
1086+
# Extra field to prevent sorting (see below) from causing an error
1087+
include_fields.append("alias")
10931088

10941089
extra_fields = listify(extra_fields or [])
10951090
extra_fields += self._getbug_extra_fields()

0 commit comments

Comments
 (0)