Created
February 1, 2015 14:55
-
-
Save hanie2014/856d14a74d75d154c9ef to your computer and use it in GitHub Desktop.
openerp -> exception
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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