V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
julia
V2EX  ›  Google App Engine

请教 BadValueError() 怎么调用?我想做个容错

  •  
  •   julia · 2010-12-13 09:56:57 +08:00 · 4055 次点击
    这是一个创建于 4908 天前的主题,其中的信息可能已经有所发展或是发生改变。
    。。。
    2 条回复    1970-01-01 08:00:00 +08:00
    darasion
        1
    darasion  
       2010-12-13 11:38:19 +08:00
    from google.appengine.ext import db

    try:
    #...
    except db.BadValueError:
    #....
    julia
        2
    julia  
    OP
       2010-12-13 11:45:26 +08:00
    谢谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4660 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 09:41 · PVG 17:41 · LAX 02:41 · JFK 05:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.