Skip to content

Commit

Permalink
Fix: settings import module error.
Browse files Browse the repository at this point in the history
  • Loading branch information
twinsant committed Sep 9, 2021
1 parent a6efdb8 commit 64549d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/legacy/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import sys
from zipfile import ZipFile, ZIP_DEFLATED
from types import ModuleType

import pathspec
from prettytable import PrettyTable
Expand Down Expand Up @@ -186,9 +187,12 @@ def settings(directory=None):

data = []
for key in [key for key in dir(settings) if not key.startswith('__')]:
v = getattr(settings, key)
if isinstance(v, ModuleType):
continue
data.append({
'key': key,
'value': getattr(settings, key),
'value': v,
})

print(json.dumps(data))
Expand Down

0 comments on commit 64549d8

Please sign in to comment.