[apycotlib] do not crash when the repository is not in the data
authorPaul Tonelli <paul.tonelli@logilab.fr>
Mon, 07 Apr 2014 14:11:29 +0200
changeset 1484 05ddb62b92b4
parent 1483 d3587ade9829
child 1485 b772de6bc982
[apycotlib] do not crash when the repository is not in the data
_apycotlib/atest.py
--- a/_apycotlib/atest.py	Wed Apr 02 11:35:07 2014 +0200
+++ b/_apycotlib/atest.py	Mon Apr 07 14:11:29 2014 +0200
@@ -127,7 +127,7 @@
             return self._repositories[pe['eid']]
         except KeyError:
             from apycotlib.repositories import get_repository
-            if not pe['repository']:
+            if 'repository' not in pe or not pe['repository'] :
                 raise Exception('Project environment %s has no repository' % pe['title'])
             repdef = {'repository': pe['repository'],
                       'path': pe['vcs_path'],