pylint: declare variable (#63176)
gitea-wip/combo/pipeline/head There was a failure building this commit Details
gitea/combo/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2022-03-25 08:03:28 +01:00
parent fd5230459a
commit 749bcddd8f
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@ class SiteImportView(FormView):
def form_valid(self, form):
fd = self.request.FILES['site_file'].file
json_site = None
try:
with tarfile.open(mode='r', fileobj=fd):
pass