Include connection errors in exception handling
This commit is contained in:
		@@ -37,7 +37,7 @@ def _editor_console(id:str=None):
 | 
			
		||||
        dataset = Dataset.query.filter_by(id=id).first()
 | 
			
		||||
        datasets = Dataset.query.count()
 | 
			
		||||
        users = User.query.all()
 | 
			
		||||
    except SQLAlchemyError as exception:
 | 
			
		||||
    except (SQLAlchemyError, ConnectionError) as exception:
 | 
			
		||||
        write('system.log', f'Database error when processing request \'{request.url}\': {exception}')
 | 
			
		||||
        return abort(500)
 | 
			
		||||
    if not dataset:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user