Commit 13fa7645a71d98646272addfaff2f115dd525cd8

Authored by Geoffrey PREUD'HOMME
1 parent 82cd3226

Correction de l'import des règles personnelles depuis un autre dossier

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
parse.py
... ... @@ -312,11 +312,13 @@ cal.add('version', '2.0')
312 312 cal.add('calscale', 'GREGORIAN')
313 313 cal.add('x-wr-calname', 'Polytech IMA ' + str(args.annee) + ' ' + args.edt)
314 314  
315   -if os.path.isfile('custom.py'):
  315 +try:
316 316 import custom
317 317 for event in events:
318 318 if event.active:
319 319 custom.filterEvent(event)
  320 +except ImportError:
  321 + pass
320 322  
321 323 for event in events:
322 324 if event.active:
... ...