Skip to content

Commit 1f6c820

Browse files
committed
fix: Catch PlatformError for none gtfobins writers
See ./pwncat/platform/linux.py:[1307,1336], raise PlatformError("no available gtfobins writers")
1 parent 0e79b87 commit 1f6c820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pwncat/commands/upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ def run(self, manager: "pwncat.manager.Manager", args):
7777
f"uploaded [cyan]{human_readable_size(length)}[/cyan] "
7878
f"in [green]{human_readable_delta(elapsed)}[/green]"
7979
)
80-
except (FileNotFoundError, PermissionError, IsADirectoryError) as exc:
80+
except (FileNotFoundError, PermissionError, IsADirectoryError, PlatformError) as exc:
8181
self.parser.error(str(exc))

0 commit comments

Comments
 (0)