Skip to Content.
Sympa Menu

idok-commit - [idok-commit] idok commit r387 - trunk/python/pydok/test

idok-commit AT lists.psi.ch

Subject: Commit emails of the iDok project

List archive

[idok-commit] idok commit r387 - trunk/python/pydok/test


Chronological Thread 
  • From: "AFS account Florian Huebner" <huebner AT savannah.psi.ch>
  • To: idok-commit AT lists.psi.ch
  • Subject: [idok-commit] idok commit r387 - trunk/python/pydok/test
  • Date: Wed, 30 Sep 2009 14:29:10 +0200
  • List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
  • List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>

Author: huebner
Date: Wed Sep 30 14:29:09 2009
New Revision: 387

Log:
Added an exception

Modified:
trunk/python/pydok/test/idok_upload_cgi.py

Modified: trunk/python/pydok/test/idok_upload_cgi.py
==============================================================================
--- trunk/python/pydok/test/idok_upload_cgi.py (original)
+++ trunk/python/pydok/test/idok_upload_cgi.py Wed Sep 30 14:29:09 2009
@@ -101,7 +101,12 @@
buf.write('"%s" ' % arg.replace('"', r'\"'))
else:
buf.write(command)
- cli_service.sendCommand(buf.getvalue())
+ try:
+ cli_service.sendCommand(buf.getvalue())
+ except:
+ print "An unhandled exception occured, here's the traceback!"
+ traceback.print_exc()
+
return file_buf.getvalue()

def idok_get_subdirs_and_files(url):



  • [idok-commit] idok commit r387 - trunk/python/pydok/test, AFS account Florian Huebner, 09/30/2009

Archive powered by MHonArc 2.6.19.

Top of Page