From f515c9c9e0d219bf85e4927ef4fa73ba1173517c Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 16 Jun 2011 10:11:11 +0000 Subject: [PATCH] Dealt with SVN update login traceback. Need to investigate further why it asks for credentials sometimes --- lib/core/update.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/core/update.py b/lib/core/update.py index 20cebfbe4..b90bd8277 100644 --- a/lib/core/update.py +++ b/lib/core/update.py @@ -68,7 +68,12 @@ def update(): client = pysvn.Client() client.callback_notify = notify - client.update(rootDir) + + try: + client.update(rootDir) + except pysvn.ClientError, e: + errMsg = "unable to update sqlmap from subversion: '%s'" % str(e) + logger.error(errMsg) except ImportError, _: debugMsg = "sqlmap will try to update itself using 'svn' command"