Commit 13fa7645a71d98646272addfaff2f115dd525cd8
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,11 +312,13 @@ cal.add('version', '2.0') | ||
312 | cal.add('calscale', 'GREGORIAN') | 312 | cal.add('calscale', 'GREGORIAN') |
313 | cal.add('x-wr-calname', 'Polytech IMA ' + str(args.annee) + ' ' + args.edt) | 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 | import custom | 316 | import custom |
317 | for event in events: | 317 | for event in events: |
318 | if event.active: | 318 | if event.active: |
319 | custom.filterEvent(event) | 319 | custom.filterEvent(event) |
320 | +except ImportError: | ||
321 | + pass | ||
320 | 322 | ||
321 | for event in events: | 323 | for event in events: |
322 | if event.active: | 324 | if event.active: |