diff --git a/README.md b/README.md index 9bdc144..cad087e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ This application requires Python3 to be installed with all the packages listed in `requirements.txt`, as well as the following software: -* Perl and the erect2cubic package +* Perl and the erect2cubic package (Panotools::Script) * Hugin (incl. Nona) * Java and zxing -* PythonMagick \ No newline at end of file +* PythonMagick +* zbar \ No newline at end of file diff --git a/core/views/__init__.py b/core/views/__init__.py index 502a317..57ed959 100644 --- a/core/views/__init__.py +++ b/core/views/__init__.py @@ -53,14 +53,14 @@ class APICreateSeries(JsonView): if id: try: Series.objects.get(id=id) - raise ValueError("Series object with id %s exists" % id) + return JsonResponse({"error": "Series object with id %s exists" % id}) except Series.DoesNotExist: pass if uuid: try: Series.objects.get(id=uuid) - raise ValueError("Series object with uuid %s exists" % uuid) + return JsonResponse({"error": "Series object with uuid %s exists" % uuid}) except Series.DoesNotExist: pass