fixing issue from stupidity
This commit is contained in:
@@ -35,7 +35,6 @@ class MTA(object):
|
|||||||
|
|
||||||
def start_updates(self):
|
def start_updates(self):
|
||||||
print("starting updates")
|
print("starting updates")
|
||||||
raise Exception("Testing failure case")
|
|
||||||
loop = asyncio.new_event_loop()
|
loop = asyncio.new_event_loop()
|
||||||
asyncio.set_event_loop(loop)
|
asyncio.set_event_loop(loop)
|
||||||
loop.run_until_complete(self._get_updates())
|
loop.run_until_complete(self._get_updates())
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ if __name__ == "__main__":
|
|||||||
try:
|
try:
|
||||||
mtaController.start_updates()
|
mtaController.start_updates()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.info(f"Exception found in update function - {e}")
|
app.logger.info(f"Exception found in update function - {e}")
|
||||||
|
|
||||||
|
|
||||||
threadLock = threading.Lock()
|
threadLock = threading.Lock()
|
||||||
|
|||||||
Reference in New Issue
Block a user