removed other branch fix
@@ -382,6 +382,8 @@ async def enable_schedule_with_name(request):
except (KeyError, ValueError, ScheduleNotFoundError) as e:
raise web.HTTPNotFound(reason=str(e))
+ except Exception as ex:
+ raise web.HTTPException(reason=str(ex))
else:
return web.json_response(schedule)
@@ -427,6 +429,8 @@ async def disable_schedule_with_name(request):
except (KeyError, ValueError, ScheduleNotFoundError) as e:
raise web.HTTPNotFound(reason=str(e))
+ except Exception as ex:
+ raise web.HTTPException(reason=str(ex))
else:
return web.json_response(schedule)
