From 1f6c82026eaed97b573c0723c3b27cbd2b4f6fd7 Mon Sep 17 00:00:00 2001 From: Mitul16 Date: Wed, 16 Feb 2022 16:05:31 +0530 Subject: [PATCH] fix: Catch PlatformError for none gtfobins writers See ./pwncat/platform/linux.py:[1307,1336], raise PlatformError("no available gtfobins writers") --- pwncat/commands/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwncat/commands/upload.py b/pwncat/commands/upload.py index badb828..98cc8b4 100644 --- a/pwncat/commands/upload.py +++ b/pwncat/commands/upload.py @@ -77,5 +77,5 @@ class Command(CommandDefinition): f"uploaded [cyan]{human_readable_size(length)}[/cyan] " f"in [green]{human_readable_delta(elapsed)}[/green]" ) - except (FileNotFoundError, PermissionError, IsADirectoryError) as exc: + except (FileNotFoundError, PermissionError, IsADirectoryError, PlatformError) as exc: self.parser.error(str(exc))