mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
fix py27 compat
This commit is contained in:
@@ -10,6 +10,11 @@ import logging.handlers
|
||||
import logging.config
|
||||
import colorama
|
||||
|
||||
try: # https://docs.python.org/3/library/exceptions.html#RecursionError
|
||||
RecursionError
|
||||
except NameError: # Python < 3.5
|
||||
RecursionError = RuntimeError
|
||||
|
||||
|
||||
class LoggingException(Exception):
|
||||
def __init__(self, record):
|
||||
|
||||
Reference in New Issue
Block a user