Skip to content

Commit

Permalink
feat/add bugsnag (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu authored Jul 21, 2023
1 parent 5b47c83 commit 8dd5bd4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 25 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/sentry.yml

This file was deleted.

10 changes: 6 additions & 4 deletions create_deck.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

import json
import sys
import os

import sentry_sdk
import bugsnag
from genanki import Note
from genanki.util import guid_for

Expand All @@ -20,9 +21,10 @@
from helpers.sanitize_tags import sanitize_tags
from helpers.write_apkg import _write_new_apkg # pylint: disable=import-error

sentry_sdk.init(
dsn="https://[email protected]/6495216",
traces_sample_rate=1.0)
bugsnag.configure(
api_key="2f08834329c1aec8ee63d1586c92bd39",
project_root=os.path.dirname(os.path.abspath(__file__)),
)

if __name__ == "__main__":
if len(sys.argv) < 2:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# make sure to update the alemayhu/base-image-n2a
# and pull it in the live server: ssh [email protected] docker pull alemayhu/base-image-n2a
genanki==0.13.0
sentry-sdk==1.28.0
fastapi>=0.68.0,<0.96.0
pydantic>=1.8.0,<2.0.0
uvicorn>=0.15.0,<0.23.0
pylint>=2.17.0
bugsnag>=4.5.0

ftfy~=6.1.1
ftfy~=6.1.1

0 comments on commit 8dd5bd4

Please sign in to comment.