mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Fix NoneType.
This commit is contained in:
@@ -42,6 +42,8 @@ class Project(object):
|
||||
@property
|
||||
def name(self):
|
||||
if self._name is None:
|
||||
if not self.pipfile_exists:
|
||||
exit(1)
|
||||
self._name = self.pipfile_location.split(os.sep)[-2]
|
||||
return self._name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user