[library-web] misc: correctly ignore modules without dotted version numbers



commit c972375c80382c9da8c5f3e5fd1db0ec4fdb1e5f
Author: Frédéric Péters <fpeters 0d be>
Date:   Mon Jan 9 10:54:59 2017 +0100

    misc: correctly ignore modules without dotted version numbers

 src/lgo.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lgo.py b/src/lgo.py
index 858350c..e7d583f 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -636,7 +636,7 @@ class Lgo(App):
             tarname_without_minor = re.match(r'(.*)\.\d+', tarball_name).groups()[0]
         except AttributeError:
             logging.debug('failed to get tarball without minor name for %s' % tarball_name)
-            return
+            return []
 
         # Step 0: remove old occurences of module extracts
         for basedir, dirnames, filenames in os.walk(os.path.join(app.config.private_dir, 'extracts')):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]