mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 21:02:21 +01:00
A little code cleanup
This commit is contained in:
@@ -35,12 +35,3 @@ class RomAlreadyExistsException(Exception):
|
||||
|
||||
def __repr__(self):
|
||||
return self.message
|
||||
|
||||
|
||||
class SchedulerException(Exception):
|
||||
def __init__(self, message: str):
|
||||
self.message = message
|
||||
super().__init__(self.message)
|
||||
|
||||
def __repr__(self):
|
||||
return self.message
|
||||
|
||||
7
backend/tasks/exceptions.py
Normal file
7
backend/tasks/exceptions.py
Normal file
@@ -0,0 +1,7 @@
|
||||
class SchedulerException(Exception):
|
||||
def __init__(self, message: str):
|
||||
self.message = message
|
||||
super().__init__(self.message)
|
||||
|
||||
def __repr__(self):
|
||||
return self.message
|
||||
@@ -1,7 +1,7 @@
|
||||
from utils.redis import redis_connectable
|
||||
from logger.logger import log
|
||||
from .exceptions import SchedulerException
|
||||
from . import scheduler
|
||||
from utils.exceptions import SchedulerException
|
||||
|
||||
|
||||
async def run():
|
||||
|
||||
@@ -5,8 +5,8 @@ from pathlib import Path
|
||||
from utils.redis import redis_connectable
|
||||
from logger.logger import log
|
||||
from typing import Final
|
||||
from .exceptions import SchedulerException
|
||||
from . import scheduler
|
||||
from utils.exceptions import SchedulerException
|
||||
|
||||
RAW_URL: Final = "https://raw.githubusercontent.com/blawar/titledb/master/US.en.json"
|
||||
FIXTURE_FILE_PATH = (
|
||||
@@ -16,8 +16,6 @@ FIXTURE_FILE_PATH = (
|
||||
/ "switch_titledb.json"
|
||||
)
|
||||
|
||||
print(FIXTURE_FILE_PATH)
|
||||
|
||||
|
||||
async def run():
|
||||
log.info("Scheduled TitleDB update started...")
|
||||
|
||||
Reference in New Issue
Block a user