Skip to content

Commit

Permalink
Avoid errors when doing migrate command
Browse files Browse the repository at this point in the history
  • Loading branch information
msaelices authored and avelis committed Jan 11, 2019
1 parent d40bb9d commit 0384cfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions silk/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def silky_reverse(name, *args, **kwargs):
return r


fpath = silky_reverse('summary')
get_fpath = lambda: silky_reverse('summary')
config = SilkyConfig()


Expand All @@ -43,7 +43,7 @@ def _should_intercept(request):
if random.random() > config.SILKY_INTERCEPT_PERCENT / 100.0:
return False

silky = request.path.startswith(fpath)
silky = request.path.startswith(get_fpath())
ignored = request.path in config.SILKY_IGNORE_PATHS
return not (silky or ignored)

Expand Down

0 comments on commit 0384cfd

Please sign in to comment.