Avoid using `or`.  Use `||` instead.  Also, there is no need to check bugids_arg since you are already checking bugids.