1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 20:54:51 +00:00
This commit is contained in:
deadc0de6
2019-06-11 13:22:33 +02:00
parent e0bbef6fb2
commit fd67adf380

View File

@@ -39,15 +39,12 @@ class Logger:
ce = self._color(self.RESET)
sys.stderr.write('{}{}{}'.format(cs, string, ce))
def err(self, string, end='\n', *, throw=None):
def err(self, string, end='\n'):
cs = self._color(self.RED)
ce = self._color(self.RESET)
msg = '{} {}'.format(string, end)
sys.stderr.write('{}[ERR] {}{}'.format(cs, msg, ce))
if throw is not None:
raise throw(msg)
def warn(self, string, end='\n'):
cs = self._color(self.YELLOW)
ce = self._color(self.RESET)