OSDN Git Service

modified: error message
authorna-ga <na-ga@karesansui-project.info>
Wed, 21 Jul 2010 05:35:03 +0000 (14:35 +0900)
committerna-ga <na-ga@karesansui-project.info>
Wed, 21 Jul 2010 05:35:03 +0000 (14:35 +0900)
karesansui/gadget/job.py

index 8cd9a0d..1d0e0bb 100644 (file)
@@ -131,6 +131,8 @@ class JobBy1(Rest):
     def _GET(self, *param, **params):
         jg_id = param[0]
         jg = jg_findby1(self.pysilhouette.orm, jg_id)
+        if jg is None:
+            return web.notfound()
         m2mj = m2mj_findby1(self.orm, jg.id)
 
         self.view.jg = jg