diff dbkit_create.py @ 2:81c7d4668a7e draft

"planemo upload commit bd03b7888eab0b010acfc3affd38bf4d4e2bb1ef-dirty"
author guerler
date Wed, 16 Dec 2020 12:02:48 +0000
parents 987e55ea29b8
children 03e124ff7e26
line wrap: on
line diff
--- a/dbkit_create.py	Thu Nov 26 11:05:51 2020 +0000
+++ b/dbkit_create.py	Wed Dec 16 12:02:48 2020 +0000
@@ -16,7 +16,7 @@
                 entry = entry.lower()
             elif args.idcase == "upper":
                 entry = entry.upper()
-            if args.idextension is not None:
+            if args.idextension:
                 entry = "%s.%s" % (entry, args.idextension)
             entries.add(entry)
     return sorted(entries)
@@ -47,6 +47,8 @@
                 indexFile.write("%s\t%d\t%d\n" % (entryId, start, size))
                 start = start + size
                 system("cat %s >> %s" % (fileName, outputDatabase))
+        else:
+            logFile.write("Content not found: %s.\n" % fileName)
         logFile.flush()
     logFile.close()