Skip to content

Commit 79041b2

Browse files
author
thenamesweretakenalready
committed
Update test_main.py
1 parent c007706 commit 79041b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def test_main():
4242
await j.get_joke(category=["misc"], auth_token=token, user_agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Brave Chrome/91.0.4472.164 Safari/537.36")
4343
except Exception as e:
4444
_, __, exc_traceback = sys.exc_info()
45-
errors.append({"Error in": "category miscellaneous", "Error": traceback.extract_tb()})
45+
errors.append({"Error in": "category miscellaneous", "Error": traceback.extract_tb(exc_traceback)})
4646
try:
4747
await j.get_joke(category=["dark"], auth_token=token, user_agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Brave Chrome/91.0.4472.164 Safari/537.36")
4848
except Exception as e:

0 commit comments

Comments
 (0)