mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
chg: [pystemon importer] fix gzipped pastes
This commit is contained in:
parent
47e1343187
commit
f1f33d6c1b
1 changed files with 7 additions and 2 deletions
|
@ -47,7 +47,12 @@ class PystemonImporter(AbstractImporter):
|
|||
if not content:
|
||||
return None
|
||||
|
||||
return self.create_message(item_id, content, source='pystemon')
|
||||
if full_item_path[-3:] == '.gz':
|
||||
gzipped = True
|
||||
else:
|
||||
gzipped = False
|
||||
|
||||
return self.create_message(item_id, content, gzipped=gzipped, source='pystemon')
|
||||
|
||||
except IOError as e:
|
||||
print(f'Error: {full_item_path}, IOError')
|
||||
|
|
Loading…
Reference in a new issue