mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Fix a silly 'except e' (too much yavascrip in my life)
This commit is contained in:
parent
8fe4fbec1c
commit
5af90b01a2
6
main.py
6
main.py
@ -150,8 +150,10 @@ def main(args, prof):
|
|||||||
try:
|
try:
|
||||||
buf.tofile(args.rawfn + '.tmp')
|
buf.tofile(args.rawfn + '.tmp')
|
||||||
os.rename(args.rawfn + '.tmp', args.rawfn)
|
os.rename(args.rawfn + '.tmp', args.rawfn)
|
||||||
except e:
|
except:
|
||||||
print 'Failed to write %s: %s' % (args.rawfn, e)
|
import traceback
|
||||||
|
print 'Failed to write %s: %s' % (args.rawfn,
|
||||||
|
traceback.format_exc())
|
||||||
print '%s (%3d/%3d), %dms' % (name, idx, len(times), evt.time())
|
print '%s (%3d/%3d), %dms' % (name, idx, len(times), evt.time())
|
||||||
yield name, buf
|
yield name, buf
|
||||||
save(rdr.out, name, None)
|
save(rdr.out, name, None)
|
||||||
|
Loading…
Reference in New Issue
Block a user