JohnSmith9982 commited on
Commit
976b4d3
1 Parent(s): 9d020e4

Update modules/utils.py

Browse files
Files changed (1) hide show
  1. modules/utils.py +2 -0
modules/utils.py CHANGED
@@ -346,6 +346,8 @@ def change_proxy(proxy):
346
 
347
 
348
  def hide_middle_chars(s):
 
 
349
  if len(s) <= 8:
350
  return s
351
  else:
 
346
 
347
 
348
  def hide_middle_chars(s):
349
+ if s is None:
350
+ return ""
351
  if len(s) <= 8:
352
  return s
353
  else: