Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert argument to str in aiida.common.escaping.escape_for_bash #3873

Merged
merged 1 commit into from
Mar 27, 2020

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Mar 27, 2020

Fixes #3872

Without conversion to string, any non-string type will cause the
function to raise an AttributeError since it won't have the method
str_replace.

Supersedes #3769

Without conversion to string, any non-string type will cause the
function to raise an `AttributeError` since it won't have the method
`str_replace`.
@codecov
Copy link

codecov bot commented Mar 27, 2020

Codecov Report

Merging #3873 into develop will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #3873   +/-   ##
========================================
  Coverage    77.15%   77.16%           
========================================
  Files          458      458           
  Lines        33788    33789    +1     
========================================
+ Hits         26070    26072    +2     
+ Misses        7718     7717    -1     
Flag Coverage Δ
#django 69.20% <100.00%> (+<0.01%) ⬆️
#sqlalchemy 70.02% <100.00%> (+<0.01%) ⬆️
Impacted Files Coverage Δ
aiida/common/escaping.py 100.00% <100.00%> (+4.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57b8a5a...0517b9a. Read the comment docs.

Copy link
Member

@ltalirz ltalirz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @sphuber !
looks good to me

@ltalirz ltalirz merged commit 2c2f3cf into aiidateam:develop Mar 27, 2020
@sphuber sphuber deleted the fix/3872/escape-for-bash branch March 28, 2020 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aiida.common.escaping.escape_for_bash can raise AttributeError if argument is not of string type
2 participants