Commit 04630cb9 authored by zorglub's avatar zorglub
Browse files

Be more resilient

parent c7b70c3b
...@@ -44,8 +44,11 @@ def process_file_once( file, header_size ): ...@@ -44,8 +44,11 @@ def process_file_once( file, header_size ):
os.remove( log_file ) os.remove( log_file )
else: else:
l.info( "Potential crash detected : %i, saving results" % suffix ) l.info( "Potential crash detected : %i, saving results" % suffix )
shutil.move( new_file , conf["crashdir"] ) try:
shutil.move( log_file , conf["crashdir"] ) shutil.move( new_file , conf["crashdir"] )
shutil.move( log_file , conf["crashdir"] )
except:
l.error( "Unable to move file" )
def process_file( file, source, header_size ): def process_file( file, source, header_size ):
l.info( "Starting work on " + file ) l.info( "Starting work on " + file )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment