Ticket #421 (closed defect: worksforme)
paste.util.mimeparse:best_match exception when weighted_matches is empty
| Reported by: | pedersen | Owned by: | ianb |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | paste | Version: | released-version |
| Severity: | normal | Keywords: | |
| Cc: |
Description
http://bitbucket.org/ianb/paste/src/tip/paste/util/mimeparse.py
Last line of this file has a problem. If weighted_matches is empty, an exception is generated.
Suggested fix is to change to this:
try:
return weighted_matches[-1][0][1] and weighted_matches[-1][1]
except:
return
Change History
Note: See
TracTickets for help on using
tickets.
