Changeset 55


Ignore:
Timestamp:
02/17/06 16:29:38 (18 years ago)
Author:
bas
Message:

EmailtoTracScript?:

delete_spam.py.in:

  • Fixed an exception error when shutil has not enough priveledges to remove the attachments.
Location:
emailtotracscript/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/debian/changelog

    r54 r55  
     1email2trac (0.5.0-4) stable; urgency=low
     2
     3  *  Continue instead of going on
     4
     5 -- root <root@subtrac.sara.nl>  Fri, 17 Feb 2006 14:29:48 +0100
     6
     7email2trac (0.5.0-3) stable; urgency=low
     8
     9  *  Fixed delete_spam.py if there are not enough permissions to
     10     delete tickets
     11
     12 -- root <root@subtrac.sara.nl>  Fri, 17 Feb 2006 12:38:19 +0100
     13
    114email2trac (0.5.0-2) stable; urgency=low
    215
  • emailtotracscript/trunk/delete_spam.py.in

    r22 r55  
    8686                                        if debug:
    8787                                                print 'delete %s : %s' %(spam_id, attachment_dir)
    88                                         shutil.rmtree(attachment_dir)
     88                                        try:
     89                                                shutil.rmtree(attachment_dir)
     90                                        except OSError, detail:
     91                                                print 'Contact system-administrator: %s' %detail
     92                                                continue
    8993
    9094                        cursor.execute("DELETE FROM ticket WHERE  component = 'Spam';")
Note: See TracChangeset for help on using the changeset viewer.