Skip to content

Commit

Permalink
bit of clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jas32096 committed Oct 26, 2016
1 parent 0f45469 commit 9204f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mps_youtube/commands/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ def related_search(vitem):
@command(r'(?:search|\.|/)\s*([^./].{1,500})')
def search(term):
""" Perform search. """
try: #TODO make use of unkowns
try: #TODO make use of unknowns
args, unknown = parser.parse_known_args(term.split(' '))
videoDuration = args.duration if args.duration else 'any'
after = args.after
term = ' '.join(args.search)
except SystemExit as e: #<------ argsparse calls exit()
except SystemExit: #<------ argsparse calls exit()
g.message = c.b + "Bad syntax. Enter h for help" + c.w
return

Expand Down

0 comments on commit 9204f12

Please sign in to comment.