Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 139833

Reverse for 'task_status' with arguments '('',)' not found. 1 pattern(s) tried: ['celery-progress/(?P[\\w-]+)/$']

$
0
0
document.addEventListener("DOMContentLoaded", function () {
  try {
      var progressUrl = "{% url 'celery_progress:task_status' task_id %}";
      CeleryProgressBar.initProgressBar(progressUrl);
  }
  catch(err) {
  }

As you can see from the above code in my index.html I'm trying to catch the exception in my title using a try catch statement in javascript. However, as the error is occuring in python...how do you modify the above code to say "if no error do this, if not":

{{index | safe}}

(Or just catch the exception and do nothing)


Viewing all articles
Browse latest Browse all 139833

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>