mercurial/exchange.py
changeset 33728 033484935391
parent 33727 fda0867cfe03
child 33752 ab0c55c2ad9a
--- a/mercurial/exchange.py	Sun Aug 06 17:44:56 2017 -0700
+++ b/mercurial/exchange.py	Sat Aug 05 15:15:20 2017 -0700
@@ -1226,8 +1226,10 @@
         opargs = {}
     pullop = pulloperation(repo, remote, heads, force, bookmarks=bookmarks,
                            streamclonerequested=streamclonerequested, **opargs)
-    if pullop.remote.local():
-        missing = set(pullop.remote.requirements) - pullop.repo.supported
+
+    peerlocal = pullop.remote.local()
+    if peerlocal:
+        missing = set(peerlocal.requirements) - pullop.repo.supported
         if missing:
             msg = _("required features are not"
                     " supported in the destination:"