--- OSAS/OSA_system/OSAS_addfiles.py 2005/01/21 17:31:48 1.38 +++ OSAS/OSA_system/OSAS_addfiles.py 2005/01/21 18:10:45 1.39 @@ -355,8 +355,11 @@ class OSAS_add_contextData(Folder): params=urllib.urlencode({'id':id,'title':title,'link':link,'label':label,'description':description,'contentType':content_type,'responsible':responsible,'weight':weight,'credits':credits,'metalink':metalink}) - - retStr=urllib.urlopen(collection+"/addResource",params).read() + try: + retStr=urllib.urlopen(collection+"/addResource",params).read() + except: + return "An Error occured adding the resource\n", collection,params + #print "added" if not retStr: return "An Error occured adding the resource\n", collection,params