Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
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 |
|