Skip to content

Commit

Permalink
Flake&Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Jan 20, 2022
1 parent 6962ce4 commit 019241d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ async def get_torrent_info(self, request):
tdef = TorrentDef.load(file)
metainfo = tdef.metainfo
except (TypeError, RuntimeError):
return RESTResponse({"error": f"error while decoding torrent file: {file}"}, status=HTTP_INTERNAL_SERVER_ERROR)
return RESTResponse({"error": f"error while decoding torrent file: {file}"},
status=HTTP_INTERNAL_SERVER_ERROR)
elif uri.startswith(HTTP):
try:
response = await query_http_uri(uri)
Expand Down
4 changes: 3 additions & 1 deletion src/tribler-gui/tribler_gui/start_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from tribler_common.logger import load_logger_config
from tribler_common.sentry_reporter.sentry_reporter import SentryStrategy

from tribler_core.check_os import (
check_and_enable_code_tracing,
check_environment,
Expand All @@ -14,6 +15,7 @@
error_and_exit,
)
from tribler_core.exceptions import TriblerException

from tribler_gui import gui_sentry_reporter
from tribler_gui.tribler_app import TriblerApplication
from tribler_gui.tribler_window import TriblerWindow
Expand Down Expand Up @@ -53,7 +55,7 @@ def run_gui(api_port, api_key, root_state_dir, parsed_args):
if app.is_running():
# if an application is already running, then send the command line
# argument to it and close the current instance
logger.info(f'GUI Application already running. Passing a torrent file path to it.')
logger.info('GUI Application is already running. Passing a torrent file path to it.')
for arg in sys.argv[1:]:
if os.path.exists(arg) and arg.endswith(".torrent"):
app.send_message(f"file:{arg}")
Expand Down

0 comments on commit 019241d

Please sign in to comment.