From 5951a6c2b1f7c1ee7b02b80e2333aed88b4a78e4 Mon Sep 17 00:00:00 2001 From: FestplattenSchnitzel Date: Thu, 26 May 2022 19:56:50 +0200 Subject: [PATCH] [import] Fix crash when no Gradle subdir is found --- fdroidserver/import.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fdroidserver/import.py b/fdroidserver/import.py index 0b615fc8..d524632b 100644 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@ -194,6 +194,9 @@ def main(): elif subdir: build.subdir = subdir.as_posix() build.gradle = ['yes'] + else: + # subdir might be None + subdir = Path() if options.license: app.License = options.license