mirror of https://github.com/rq/rq.git
Ok i am being lazy using the try catch
This commit is contained in:
parent
17be896744
commit
af04545bbf
|
@ -70,9 +70,9 @@ class _Colorizer(object):
|
|||
self.codes["fuscia"] = self.codes["fuchsia"]
|
||||
self.codes["white"] = self.codes["bold"]
|
||||
|
||||
try:
|
||||
if hasattr(sys.stdout, "isatty"):
|
||||
self.notty = not sys.stdout.isatty()
|
||||
except:
|
||||
else:
|
||||
self.notty = True
|
||||
|
||||
def reset_color(self):
|
||||
|
|
Loading…
Reference in New Issue