Yaron Koresh commited on
Commit
7a3ac2e
·
verified ·
1 Parent(s): d8ebc2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ import sys
26
  import warnings
27
 
28
  def err(msg):
29
- if str(msg).replace("\n","").replace("\t","").strip() != "":
30
  print( "\n >>> [!!!] "+msg+"\n" )
31
  pass
32
 
 
26
  import warnings
27
 
28
  def err(msg):
29
+ if (str(type(msg)) == "<class 'str'>" or str(type(msg)) == "<class 'int'>") and len(str(msg).replace("\n","").replace("\t","").strip()) >= 1:
30
  print( "\n >>> [!!!] "+msg+"\n" )
31
  pass
32