Skip to content

Commit

Permalink
Make empty set check more Pythonic
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhlin authored Jan 19, 2024
1 parent 85c89b4 commit ba0b1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/osg-notify
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def parseargs():
oparser.error("--oim-owner-filter and --oim-recipients=vos options are conflicting")
if args.name_filter and args.fqdn_filter:
oparser.error("Can't specify both --oim-name-filter and --oim-fqdn-filter")
if (len(args.contact_type) == 0) or ("all" in args.contact_type):
if not args.contact_type or ("all" in args.contact_type):
args.contact_type = ["all"]

if args.from_name == 'security':
Expand Down

0 comments on commit ba0b1f1

Please sign in to comment.