project: Require project/vcs
[update-copyright.git] / update_copyright / project.py
index e04364fcc05c2720504f5e322744a876d3e47867..176ff68b317f5b66656b19e54538cdafd9cafa2b 100644 (file)
@@ -73,21 +73,20 @@ class Project (object):
             project = {}
         self._name = project.get('name')
         vcs = project.get('vcs')
-        if vcs:
-            kwargs = {
-                'root': self._root,
-                'author_hacks': self._author_hacks,
-                'year_hacks': self._year_hacks,
-                'aliases': self._aliases,
-                }
-            if vcs == 'Git':
-                self._vcs = _GitBackend(**kwargs)
-            elif vcs == 'Mercurial':
-                if _MercurialBackend is None:
-                    raise _mercurial_import_error
-                self._vcs = _MercurialBackend(**kwargs)
-            else:
-                raise NotImplementedError('vcs: {}'.format(vcs))
+        kwargs = {
+            'root': self._root,
+            'author_hacks': self._author_hacks,
+            'year_hacks': self._year_hacks,
+            'aliases': self._aliases,
+        }
+        if vcs == 'Git':
+            self._vcs = _GitBackend(**kwargs)
+        elif vcs == 'Mercurial':
+            if _MercurialBackend is None:
+                raise _mercurial_import_error
+            self._vcs = _MercurialBackend(**kwargs)
+        else:
+            raise NotImplementedError('vcs: {}'.format(vcs))
 
     def _load_copyright_conf(self, parser):
         try: