diff --git a/server/KonomiTV.py b/server/KonomiTV.py index f7cd4ec4..b90cab21 100644 --- a/server/KonomiTV.py +++ b/server/KonomiTV.py @@ -8,7 +8,11 @@ import time if sys.platform != 'win32': os.environ['TZ'] = 'Asia/Tokyo' - time.tzset() + # Linux でもなぜか time.tzset() が使えないことがあるので、try-except で囲む + try: + time.tzset() + except AttributeError: + pass import atexit import platform