Introduction
Introduction Statistics Contact Development Disclaimer Help
Properly exit on no channel path being available. - annna - Annna the nice frie…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit b078e0710d6543cab2e891ec0825ba5ead7562d9
parent a386263fc5344f8c2f783a8685a9dce1a9b6449d
Author: Annna Robert-Houdin <[email protected]>
Date: Sun, 24 Mar 2024 18:21:55 +0100
Properly exit on no channel path being available.
Diffstat:
M modules/idlerpg/idlerpg-channel-se… | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/modules/idlerpg/idlerpg-channel-service.py b/modules/idlerpg/idler…
@@ -50,10 +50,13 @@ def writeout_dictfile(f, d):
fd.close()
def say(fpath, text):
- fd = open(fpath, "w")
- fd.write("%s\n" % (text))
- fd.flush()
- fd.close()
+ try:
+ fd = open(fpath, "w")
+ fd.write("%s\n" % (text))
+ fd.flush()
+ fd.close()
+ except:
+ sys.exit(1)
def usage(app):
app = os.path.basename(app)
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.