Browse Source

Fixed error in interating over error map.

pull/2/head 1.0.4
Richard Neumann 4 years ago
parent
commit
d7c586f2e6
  1. 2
      rcon/errorhandler.py

2
rcon/errorhandler.py

@ -24,7 +24,7 @@ class ErrorHandler:
def __exit__(self, typ, *_):
"""Checks for connection errors and exits respectively."""
for error, (message, returncode) in self.errors.items():
for error, message, returncode in self.errors:
if isinstance(typ, error):
self.logger.error(message)
exit(returncode)

Loading…
Cancel
Save