resources.py: quick fix for getting empty category list with get() in CategoryAPI
authorNicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
Tue, 06 Jan 2015 15:53:09 +0100
changeset 25 e839084fb54a
parent 24 612f669ce3d0
child 26 e3affd6625d6
child 31 511f3b94c616
resources.py: quick fix for getting empty category list with get() in CategoryAPI
src/catedit/resources.py
--- a/src/catedit/resources.py	Tue Jan 06 15:21:08 2015 +0100
+++ b/src/catedit/resources.py	Tue Jan 06 15:53:09 2015 +0100
@@ -50,8 +50,6 @@
             for cat in cat_manager_instance.list_categories():
                 response.append(cat.cat_graph.serialize(format='turtle')
                                              .decode("utf-8"))
-            if response == []:
-                return 404
             return response
 
     # update category cat_id