mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
fixing Python 3.9 compat
This commit is contained in:
parent
4112187cd2
commit
8b93ae8e68
|
@ -14,6 +14,7 @@
|
||||||
"pg_port": "5432",
|
"pg_port": "5432",
|
||||||
"redis_host": "localhost",
|
"redis_host": "localhost",
|
||||||
"ignored": [],
|
"ignored": [],
|
||||||
|
"max_discord_additional_await_time": 120,
|
||||||
"irc_servers": {
|
"irc_servers": {
|
||||||
"your custom name for the farm": {
|
"your custom name for the farm": {
|
||||||
"domains": ["wikipedia.org", "otherwikipedia.org"],
|
"domains": ["wikipedia.org", "otherwikipedia.org"],
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
from typing import Union
|
||||||
|
|
||||||
|
|
||||||
class WikiError(Exception):
|
class WikiError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -71,6 +74,6 @@ class WikiExists(Exception):
|
||||||
|
|
||||||
|
|
||||||
class ExhaustedDiscordBucket(BaseException):
|
class ExhaustedDiscordBucket(BaseException):
|
||||||
def __init__(self, remaining: int | float, is_global: bool):
|
def __init__(self, remaining: Union[int, float], is_global: bool):
|
||||||
self.remaining = remaining
|
self.remaining = remaining
|
||||||
self.is_global = is_global
|
self.is_global = is_global
|
||||||
|
|
Loading…
Reference in a new issue