forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced try...catch with ParameterSet::existsAs calls
This code was causing dozens of exceptions to be thrown and then caught in production jobs. Since the code was only testing the existence of a ParameterSet it was easy to replace with existsAs. NOTE: It looks to me like this code is completely unnecessary. The loop just before this one goes over the exact same parameter names and asks for them as tracked parameters. If that succeeds, they can't also be untracked so the code modified does nothing. If that fails an exception is thrown and the code modified is never called.
- Loading branch information
Showing
1 changed file
with
12 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters