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 · 4042 次点击
    这是一个创建于 4893 天前的主题,其中的信息可能已经有所发展或是发生改变。
    。。。
    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   ·   我们的愿景   ·   实用小工具   ·   3179 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:56 · PVG 20:56 · LAX 05:56 · JFK 08:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.