Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from takkii/develop
Browse files Browse the repository at this point in the history
Update.
  • Loading branch information
takkii authored Feb 26, 2023
2 parents b87779a + a0cea8a commit a40d96e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rplugin/python3/deoplete/sources/phantom.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def gather_candidates(self, context):
# Set the dictionary.
with open(os.path.expanduser("~/config/load.yml")) as yml:
config = yaml.safe_load(yml)
yml_load = os.path.expanduser(config['Folder_Load_Path'])
yml_load = os.path.expanduser(config['Folder_Load_Path'])

# Get the dictionary.
if os.path.isdir(yml_load):
Expand All @@ -51,19 +51,19 @@ def gather_candidates(self, context):
complete = data_ruby
complete.sort(key=itemgetter(0))

# result
return complete

# TraceBack
except Exception:
with open("phantom_error.log", 'a') as log_py:
traceback.print_exc(file=log_py)
sys.exit(1)
sys.exit(1)

# Custom Exception
except ValueError as ext:
print(ext)

# Finally + GC
# GC Start
finally:
# result
return complete
# GC Start
gc.enable()

0 comments on commit a40d96e

Please sign in to comment.