cleanup: Remove unused variables.

Generated by autoflake.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-04-18 16:36:24 -07:00 committed by Tim Abbott
parent f5d96dbcce
commit 54b2578204
13 changed files with 20 additions and 20 deletions

View file

@ -43,7 +43,7 @@ def matrix_login(matrix_client: Any, matrix_config: Dict[str, Any]) -> None:
raise Bridge_FatalMatrixException("Bad username or password.")
else:
raise Bridge_FatalMatrixException("Check if your server details are correct.")
except MissingSchema as exception:
except MissingSchema:
raise Bridge_FatalMatrixException("Bad URL format.")
def matrix_join_room(matrix_client: Any, matrix_config: Dict[str, Any]) -> Any:
@ -304,7 +304,7 @@ def main() -> None:
sys.exit("Zulip bridge error: {}".format(exception))
except zulip.ZulipError as exception:
sys.exit("Zulip error: {}".format(exception))
except Exception as e:
except Exception:
traceback.print_exc()
backoff.fail()

View file

@ -451,7 +451,7 @@ option does not affect login credentials.'''.replace("\n", " "))
logging.info("Connecting to Zulip.")
zulipToJabber.client.call_on_each_event(zulipToJabber.process_event,
event_types=event_types)
except BaseException as e:
except BaseException:
logging.exception("Exception in main loop")
xmpp.abort()
sys.exit(1)

View file

@ -121,5 +121,5 @@ if __name__ == "__main__":
finally:
try:
os.remove(lock_path)
except OSError as IOError:
except OSError:
pass