[impression] catcher moins d'exceptions
Ignore-this: 43db138498d4826e930082574bc2864a Pour gagner plu^U darcs-hash:20120627162611-28565-eeff7a2664c98f931066572df60f9fc7b394508e.gz
This commit is contained in:
parent
ca93d5895e
commit
c496e1f166
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ def _uniq_jid():
|
||||||
f = file(fname,'r+')
|
f = file(fname,'r+')
|
||||||
cur = int(f.read())+1
|
cur = int(f.read())+1
|
||||||
f.seek(0)
|
f.seek(0)
|
||||||
except:
|
except (IOError,ValueError):
|
||||||
cur = 0
|
cur = 0
|
||||||
f = file(fname,'w')
|
f = file(fname,'w')
|
||||||
f.write(str(cur))
|
f.write(str(cur))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue