mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-07-14 10:39:27 -04:00
remove exception raised for testing
This commit is contained in:
parent
aacb886b62
commit
89e41e7c82
1 changed files with 0 additions and 3 deletions
|
@ -156,9 +156,6 @@ class Umbra:
|
||||||
with conn.Consumer(url_queue, callbacks=[self.fetch_url]) as consumer:
|
with conn.Consumer(url_queue, callbacks=[self.fetch_url]) as consumer:
|
||||||
import socket
|
import socket
|
||||||
while not self.amqp_stop.is_set():
|
while not self.amqp_stop.is_set():
|
||||||
import random
|
|
||||||
if random.randrange(0, 30) == 0:
|
|
||||||
raise BaseException("test exception!")
|
|
||||||
try:
|
try:
|
||||||
conn.drain_events(timeout=0.5)
|
conn.drain_events(timeout=0.5)
|
||||||
except socket.timeout:
|
except socket.timeout:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue