Skip to content

Commit c9a0242

Browse files
delsimGibbsConsulting
authored andcommitted
Handle case of missing dash.fingerprint module (#192)
* Add contributor * Handle missing module in older dash versions
1 parent 86e7400 commit c9a0242

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CONTRIBUTIONS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ Thanks to the following people:
2727
[dwinston](https://github.com/dwinston)
2828

2929
[gianlucasalvato](https://github.com/gianlucasalvato)
30+
31+
[tiagoslg](https://https://github.com/tiagoslg)

django_plotly_dash/views.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@
2828

2929
from django.http import HttpResponse, HttpResponseRedirect
3030
from django.shortcuts import redirect
31-
from dash.fingerprint import check_fingerprint
31+
32+
try:
33+
from dash.fingerprint import check_fingerprint
34+
except:
35+
# check_fingerprint not available, fake it
36+
def check_fingerprint(resource):
37+
return resource, None
38+
3239

3340
from .models import DashApp
3441
from .util import get_initial_arguments, static_path

0 commit comments

Comments
 (0)