mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
[v1] Remove import try / except block
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
import json
|
||||
from codecs import StreamReader
|
||||
from json.decoder import JSONDecodeError
|
||||
from typing import Any, Dict, Generator, List, Optional, TextIO, Union
|
||||
|
||||
from .events import to_absolute_time
|
||||
|
||||
try:
|
||||
from json.decoder import JSONDecodeError
|
||||
except ImportError:
|
||||
JSONDecodeError = ValueError # type: ignore
|
||||
|
||||
|
||||
class LoadError(Exception):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user