Generalise exception handling
This commit is contained in:
		@@ -38,7 +38,7 @@ def _view_console(id:str=None):
 | 
			
		||||
        dataset = Dataset.query.filter_by(id=id).first()
 | 
			
		||||
        datasets = Dataset.query.count()
 | 
			
		||||
        users = User.query.all()
 | 
			
		||||
    except (SQLAlchemyError, ConnectionError) as exception:
 | 
			
		||||
    except Exception 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