Merge "Dan't accessing attr of None (`manifest` subcmd)"
diff --git a/manifest_xml.py b/manifest_xml.py
index b3ab098..f1d3eda 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -233,7 +233,9 @@
e.setAttribute('name', name)
if relpath != name:
e.setAttribute('path', relpath)
- remoteName = d.remote.remoteAlias or d.remote.name
+ remoteName = None
+ if d.remote:
+ remoteName = d.remote.remoteAlias or d.remote.name
if not d.remote or p.remote.name != remoteName:
e.setAttribute('remote', p.remote.name)
if peg_rev: