Fixed deprecation warnings.
h3rald h3rald@h3rald.com
Sat, 22 Apr 2023 10:51:53 +0000
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/pls.nim
→
src/pls.nim
@@ -379,7 +379,7 @@ CONFIG_FILE.writeFile(DEFAULT_CFG)
try: CONFIG_FILE.parseConfig() -except: +except CatchableError: echo "(!) Unable to parse $1: $2" % [CONFIG_FILE, getCurrentExceptionMsg()] quit(1)@@ -402,5 +402,5 @@ for arg in targets:
for thing in filterItems("things", arg): try: execute(action, thing) - except: + except CatchableError: stderr.writeLine "(!) " & getCurrentExceptionMsg()