Suppression des fichier temporaires, qui marche bien l...
darcs-hash:20070203011209-f46e9-0651983c44a620157cd9cc048a8c3af9779e7aec.gz
This commit is contained in:
parent
18fb9bb939
commit
92435a7194
2 changed files with 19 additions and 5 deletions
|
@ -209,8 +209,10 @@ class impression:
|
|||
try:
|
||||
self._base_prix_couleurs, self._nb_pages = cout.base_prix_couleurs(path_to_pdf)
|
||||
self._base_prix_nb, self._nb_pages = cout.base_prix_nb(path_to_pdf)
|
||||
except:
|
||||
except ValueError:
|
||||
raise FichierInvalide, ("PDF bugge, Analyse impossible.", path_to_pdf)
|
||||
except Exception, e:
|
||||
raise Exception, "Erreur dans le calcul du cout : %s " % str(e)
|
||||
self._calcule_prix()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue