Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flow3r
flow3r firmware
Merge requests
!188
Q3k/fancy 1.2 features
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Q3k/fancy 1.2 features
q3k/fancy-1.2-features
into
main
Overview
0
Commits
8
Pipelines
3
Changes
1
Merged
q3k
requested to merge
q3k/fancy-1.2-features
into
main
1 year ago
Overview
0
Commits
8
Pipelines
3
Changes
1
Expand
0
0
Merge request reports
Viewing commit
6373baa5
Prev
Next
Show latest version
1 file
+
3
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
6373baa5
py: do not leak file descriptor when loading apps
· 6373baa5
q3k
authored
1 year ago
python_payload/st3m/application.py
+
3
−
0
Options
@@ -109,9 +109,12 @@ class BundleMetadata:
try
:
t
=
toml
.
load
(
f
)
except
toml
.
TomlDecodeError
as
e
:
f
.
close
()
raise
BundleMetadataCorrupt
(
str
(
e
))
except
Exception
as
e
:
f
.
close
()
raise
BundleMetadataCorrupt
(
str
(
e
))
f
.
close
()
if
"
app
"
not
in
t
or
type
(
t
[
"
app
"
])
!=
dict
:
raise
BundleMetadataBroken
(
"
missing app section
"
)
Loading