infocalypse

(Arne Babenhauserheide)
2012-06-30: fix hg-git interaction error.

fix hg-git interaction error.

diff --git a/infocalypse/__init__.py b/infocalypse/__init__.py
--- a/infocalypse/__init__.py
+++ b/infocalypse/__init__.py
@@ -594,9 +594,13 @@ def freenetpush(orig, *args, **opts):
 def freenetclone(orig, *args, **opts):
     def parsepushargs(ui, repo, path=None):
         return ui, repo, path
+
     def isfreenetpath(path):
-        if path and path.startswith("freenet:") or path.startswith("USK@"):
-            return True
+        try:
+            if path.startswith("freenet:") or path.startswith("USK@"):
+                return True
+        except AttributeError:
+            return False
         return False
     ui, source, dest = parsepushargs(*args)
     # only act differently, if dest or source is an infocalypse repo.