[chronojump] fixed crash on chronojump_importer.py debug
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] fixed crash on chronojump_importer.py debug
- Date: Wed, 9 Oct 2019 14:08:31 +0000 (UTC)
commit 04b9ee30e8b2dcf6c81e6141318e8678d1fe6153
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Oct 9 16:08:15 2019 +0200
fixed crash on chronojump_importer.py debug
src/chronojump-importer/chronojump_importer.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/chronojump-importer/chronojump_importer.py b/src/chronojump-importer/chronojump_importer.py
index 95c77536..53d5f1b8 100755
--- a/src/chronojump-importer/chronojump_importer.py
+++ b/src/chronojump-importer/chronojump_importer.py
@@ -694,7 +694,6 @@ class ImportSession:
if(DEBUGTOFILE):
debugFile.write(" end _import_forceSensor ")
- debugFile.close()
def _import_runEncoder(self):
# Imports RunEncoderExercise
@@ -732,7 +731,6 @@ class ImportSession:
if(DEBUGTOFILE):
debugFile.write(" end _import_runEncoder ")
- debugFile.close()
@@ -951,6 +949,9 @@ def process_command_line():
importer.import_as_new_session(args.source_session)
else:
importer.import_into_session(args.source_session, args.destination_session)
+
+ if(DEBUGTOFILE):
+ debugFile.close()
else:
print("if --information not used --source, --destination and --source_session parameters are
required")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]