Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
Tried to fix a nagging `do not use bare 'except'` error by expanding on lines 70 and 71.
  • Loading branch information
robinhood2014 committed Dec 20, 2023
1 parent 49f5175 commit a520f43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radioactive/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def load(self):

return options

except:
log.error("Something went wrong while parsing the config file")
except Exception as e:
log.error("Something went wrong while parsing the config file: {e}")
# write the example config file
write_a_sample_config_file()
log.info("Re-run radioative")
log.info("Re-run radioactive")
sys.exit(1)

0 comments on commit a520f43

Please sign in to comment.