File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -534,13 +534,14 @@ def test_backup_with_context():
534534                    return  f"Repository { repository .id }  
535535            except  Exception  as  e :
536536                logger .error (f"Error in test backup for repository { repository .id } { e }  )
537-                 return  f"Error:  { str ( e ) } 
537+                 return  "An internal error occurred "
538538
539539    try :
540540        result  =  test_backup_with_context ()
541541        return  jsonify ({'success' : True , 'message' : result })
542542    except  Exception  as  e :
543-         return  jsonify ({'success' : False , 'error' : str (e )}), 500 
543+         logger .error (f"Error in /api/test-backup/{ repo_id } { e }  )
544+         return  jsonify ({'success' : False , 'error' : 'Internal server error' }), 500 
544545
545546@app .route ('/api/theme' , methods = ['POST' ]) 
546547@login_required  
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments