~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/database.py

  • Committer: William Grant
  • Date: 2009-01-19 04:37:20 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: grantw@unimelb.edu.au-20090119043720-c4pwddw8w8roz0qy
ivle.database._kwarg_init: Fix exception throwing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    for k,v in kwargs.items():
45
45
        if k.startswith('_') or not hasattr(self, k):
46
46
            raise TypeError("%s got an unexpected keyword argument '%s'"
47
 
                % self.__class__.__name__, k)
 
47
                % (self.__class__.__name__, k))
48
48
        setattr(self, k, v)
49
49
 
50
50
def get_conn_string():