Skip to content

Commit cd4c1fb

Browse files
committed
Add some print debugging
1 parent aaed930 commit cd4c1fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from traceback import print_exc
88
from fastapi.staticfiles import StaticFiles
99
from fastapi.middleware.cors import CORSMiddleware
10-
from starlette.types import Scope, Receive, Send
1110

1211
from pydantic import BaseModel
1312
import sqlalchemy
@@ -129,7 +128,8 @@ async def url_worker():
129128
await session.execute(update(Job).where(Job.id == next_job.id).values(completed=saved_dt, failed=None, delayed_until=None))
130129
break
131130
except Exception:
132-
pass
131+
print("Skipping exception during URL archiving:")
132+
print_exc()
133133
await asyncio.sleep(10)
134134
else: # Ran out of retries, try again
135135
async with session.begin():

0 commit comments

Comments
 (0)