holland-backup / holland

Holland Backup Manager
http://hollandbackup.org
Other
152 stars 49 forks source link

Jenkins build failures - Unnecessary "else" after "raise" #371

Closed mikegriffin closed 8 months ago

mikegriffin commented 9 months ago

https://github.com/holland-backup/holland/blob/master/holland/core/util/lock.py#L34 https://jenkins.hollandbackup.org/job/holland/job/master/20/execution/node/40/log/

holland/core/util/lock.py:28:8: R1720: Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it (no-else-raise) holland/core/util/lock.py:45:8: R1720: Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it (no-else-raise)

https://github.com/holland-backup/holland/blob/master/contrib/holland-commvault/holland_commvault/commvault.py#L159 https://jenkins.hollandbackup.org/job/holland/job/master/20/execution/node/41/log/

contrib/holland-commvault/holland_commvault/commvault.py:153:8: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)