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

Added 'is not None' to if conditions #626

Merged
merged 1 commit into from
Apr 2, 2023

Conversation

calvinp0
Copy link
Member

In the original issue, when a self.variable =0, then the if self.variable: was not met in theas_dict() function found in the script:

if self.tsg:

@calvinp0 calvinp0 linked an issue Mar 26, 2023 that may be closed by this pull request
@calvinp0 calvinp0 requested a review from MichalKesl March 26, 2023 16:24
Copy link
Member

@alongd alongd left a comment

Choose a reason for hiding this comment

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

Thanks! Added a few comments

arc/job/adapter.py Outdated Show resolved Hide resolved
arc/job/adapter.py Outdated Show resolved Hide resolved
arc/job/adapter.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 26, 2023

Codecov Report

Merging #626 (df49754) into main (be28706) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #626   +/-   ##
=======================================
  Coverage   73.02%   73.02%           
=======================================
  Files          99       99           
  Lines       26179    26179           
  Branches     5482     5482           
=======================================
+ Hits        19116    19118    +2     
+ Misses       5700     5699    -1     
+ Partials     1363     1362    -1     
Impacted Files Coverage Δ
arc/job/adapter.py 40.50% <0.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@calvinp0 calvinp0 requested a review from alongd March 26, 2023 20:15
@alongd
Copy link
Member

alongd commented Mar 29, 2023

I added one comment, please rebase and squash

@calvinp0 calvinp0 force-pushed the 623-receiving-keyerror-0-when-attempting-arcrestart branch 2 times, most recently from 6a6c76c to df49754 Compare March 31, 2023 21:06
Adjusted some if conditions to check for isinstance(variable, type)
@calvinp0 calvinp0 requested a review from alongd April 1, 2023 20:34
Copy link
Member

@alongd alongd left a comment

Choose a reason for hiding this comment

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

Thanks!

@alongd alongd merged commit 6c7513e into main Apr 2, 2023
@alongd alongd deleted the 623-receiving-keyerror-0-when-attempting-arcrestart branch April 2, 2023 06:39
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.

Receiving KeyError: '0' when attempting arcrestart
2 participants