From 383185e6cb8b7349433f57db28e8b6937e6cd3e8 Mon Sep 17 00:00:00 2001 From: Ari Brown Date: Wed, 23 Aug 2023 08:12:01 -0400 Subject: [PATCH] better exception info --- minerva/athena.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/minerva/athena.py b/minerva/athena.py index fef820c..3fd9d59 100644 --- a/minerva/athena.py +++ b/minerva/athena.py @@ -29,7 +29,6 @@ class Athena: e.run() return e - class Execute: """ Execute will not return results, but will execute the SQL and return the final state. @@ -42,7 +41,7 @@ class Execute: self.sql = sql self.params = [str(p) for p in params] self.info_cache = None - self.files = [] + self.temps = [] # The string of the query def query(self): @@ -116,7 +115,7 @@ class Query(Execute): else: print("Error") print(self.info_cache['Status']['AthenaError']['ErrorMessage']) - raise + raise Exception(self.info_cache['Status']['AthenaError']['ErrorMessage']) #return status # canceled or error # Blocks until the query has finished running and then returns you a pyarrow