Revision 7820534a snf-astakos-app/astakos/im/management/commands/quota.py

b/snf-astakos-app/astakos/im/management/commands/quota.py
128 128
            try:
129 129
                user = AstakosUser.objects.get(uuid=user_ident)
130 130
            except AstakosUser.DoesNotExist:
131
                raise CommandError('Not found user having uuid: %s' %
131
                raise CommandError('There is no user with uuid: %s' %
132 132
                                   user_ident)
133 133
        elif is_email(user_ident):
134 134
            try:
135 135
                user = AstakosUser.objects.get(username=user_ident)
136 136
            except AstakosUser.DoesNotExist:
137
                raise CommandError('Not found user having email: %s' %
137
                raise CommandError('There is no user with email: %s' %
138 138
                                   user_ident)
139 139
        else:
140 140
            raise CommandError('Please specify user by uuid or email')
141 141

  
142
        if not user.email_verified and sync:
143
            raise CommandError('User %s is not verified.' % user.uuid)
142
        if not user.email_verified:
143
            raise CommandError('%s is not a verified user.\n' % user.uuid)
144 144

  
145 145
        return user
146 146

  

Also available in: Unified diff