Skip to content

Commit

Permalink
Interrupted should always be handled before Closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
shersonb committed May 16, 2021
1 parent 5f5bf14 commit ac42762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ while True:
try:
item = q.get()

except Closed:
except Interrupted:
break

except Interrupted:
except Closed:
break

doanotherthing(item)
Expand Down

0 comments on commit ac42762

Please sign in to comment.