Skip to content

Commit d3db484

Browse files
authored
Merge pull request #336 from superannotateai/doc
Fix sphinx
2 parents 8196463 + 76c4445 commit d3db484

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

requirements_dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ tox==3.24.2
33
pytest==6.2.4
44
pytest-xdist==2.3.0
55
pytest-parallel==0.1.0
6-
pytest-rerunfailures==10.2
6+
pytest-rerunfailures==10.2
7+
sphinx_rtd_theme==1.0.0

src/superannotate/lib/app/mixp/decorators.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010

1111
controller = Controller.get_instance()
1212

13-
if "api.annotate.online" in controller._backend_client.api_url:
14-
TOKEN = "ca95ed96f80e8ec3be791e2d3097cf51"
15-
else:
13+
try:
14+
if "api.annotate.online" in controller._backend_client.api_url:
15+
TOKEN = "ca95ed96f80e8ec3be791e2d3097cf51"
16+
else:
17+
TOKEN = "e741d4863e7e05b1a45833d01865ef0d"
18+
except AttributeError as e:
1619
TOKEN = "e741d4863e7e05b1a45833d01865ef0d"
1720
mp = Mixpanel(TOKEN)
1821

0 commit comments

Comments
 (0)