Skip to content

Instantly share code, notes, and snippets.

@hanie2014
Created February 1, 2015 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanie2014/856d14a74d75d154c9ef to your computer and use it in GitHub Desktop.
Save hanie2014/856d14a74d75d154c9ef to your computer and use it in GitHub Desktop.
openerp -> exception
class AccessDenied(Exception):
""" Login/password error. No message, no traceback. """
def __init__(self):
super(AccessDenied, self).__init__('Access denied.')
self.traceback = ('', '', '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment