~ar-python-hackers/authentication-results-python/trunk

« back to all changes in this revision

Viewing changes to authres/core.py

  • Committer: Scott Kitterman
  • Date: 2018-03-02 05:34:18 UTC
  • Revision ID: scott@kitterman.com-20180302053418-oehk2ivy68666kgl
Remove unneeded try/except

Show diffs side-by-side

added added

removed removed

Lines of Context:
514
514
        results = []
515
515
        result = True
516
516
        while result:
517
 
            try:
518
 
                result = self._parse_resinfo()
519
 
                if result:
520
 
                    results.append(result)
521
 
                    if result == self.NONE_RESULT:
522
 
                        break
523
 
            except SyntaxError as e:
524
 
                if self.strict:
525
 
                    raise
526
 
                else:
527
 
                    pass
 
517
            result = self._parse_resinfo()
 
518
            if result:
 
519
                results.append(result)
 
520
                if result == self.NONE_RESULT:
 
521
                    break
528
522
        if not len(results):
529
523
            raise SyntaxError('Expected "none" or at least one resinfo', self._parse_text)
530
524
        elif results == [self.NONE_RESULT]: