Add third guard clause.
@@ -188,7 +188,9 @@ class FrozenRequirement(object):
"falling back to uneditable format", exc
)
req = None
- if req is None:
+ if req is not None:
+ return (req, editable, comments)
+
logger.warning(
'Could not determine repository location of %s', location
)
