Browse Source
Skip creation if exists and definitely log PANICs
main
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
4 additions and
3 deletions
-
etherpump/commands/pull.py
|
@ -288,9 +288,10 @@ async def handle_pad(args, padid, data, info, session): |
|
|
if args.all or (args.meta or args.text or args.html or args.dhtml): |
|
|
if args.all or (args.meta or args.text or args.html or args.dhtml): |
|
|
try: |
|
|
try: |
|
|
path = trio.Path(os.path.split(metapath)[0]) |
|
|
path = trio.Path(os.path.split(metapath)[0]) |
|
|
|
|
|
if not os.path.exists(path): |
|
|
await path.mkdir() |
|
|
await path.mkdir() |
|
|
except OSError: |
|
|
except OSError as exception: |
|
|
print("PANIC: unable to create {}".format(str(path))) |
|
|
print("PANIC: {}".format(exception)) |
|
|
|
|
|
|
|
|
if args.all or args.text: |
|
|
if args.all or args.text: |
|
|
url = info["localapiurl"] + "getText?" + urlencode(data) |
|
|
url = info["localapiurl"] + "getText?" + urlencode(data) |
|
|