diff --git a/git_import.py b/git_import.py
index 4539b3edc7c5e9a6822e5a015e2518727acf0904..13a5532b37097f1cceff63e2700fe4455450e5ff 100644
--- a/git_import.py
+++ b/git_import.py
@@ -28,6 +28,8 @@ def checkUserYml():
 
 def getRepoYml():
     for y in os.listdir( RPATH ):
+        if( not os.path.isfile( RPATH + '/' + y ) ):
+            continue
         if( y == 'user.yml'):
             continue
         with open( RPATH + '/' + y, 'r') as stream:
@@ -44,8 +46,8 @@ def getRepoYml():
 
 if( os.path.exists(QPATH) ):
     for f in os.listdir( QPATH ):
-        if( os.path.isfile(f) ):
-            h=hashlib.md5(open( QPATH + '/'+f,'rb').read()).hexdigest()
+        if( os.path.isfile( QPATH + '/' + f ) ):
+            h=hashlib.md5(open( QPATH + '/' + f,'rb').read()).hexdigest()
             repo=open( QPATH + '/' + f,'r').read()
             os.system( 'rm -rf '+RPATH )
             os.system( 'git clone '+repo+' --config core.sshCommand="ssh -i ~/.ssh/p2p" ' + RPATH )