diff options
| author | bwarsaw | 2002-12-04 13:52:15 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-12-04 13:52:15 +0000 |
| commit | 5aacfee5367c305456a4ae6027381d419b5de7fb (patch) | |
| tree | afae3d15004f844d6f2598a6e803f7e682bb28a4 /bin | |
| parent | 6bd6ec6e92a25d45b14067b6faeba94481a79125 (diff) | |
| download | mailman-5aacfee5367c305456a4ae6027381d419b5de7fb.tar.gz mailman-5aacfee5367c305456a4ae6027381d419b5de7fb.tar.zst mailman-5aacfee5367c305456a4ae6027381d419b5de7fb.zip | |
do_output(): Fix UnboundLocalError when trying to write to a file we
don't have permission for. Closes SF #646571.
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/config_list | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/config_list b/bin/config_list index 719f2d5d1..a09335a0f 100644 --- a/bin/config_list +++ b/bin/config_list @@ -91,10 +91,10 @@ def usage(code, msg=''): def do_output(listname, outfile): + closep = 0 try: if outfile == '-': outfp = sys.stdout - closep = 0 else: outfp = open(outfile, 'w') closep = 1 |
