Browse Source

Catch Schwifty error on Ubuntu

bernhardbuhl 3 years ago
parent
commit
286e3d1d95
1 changed files with 5 additions and 1 deletions
  1. 5 1
      baangt/base/IBAN.py

+ 5 - 1
baangt/base/IBAN.py

@@ -1,4 +1,8 @@
-import schwifty
+try:
+    import schwifty
+except Exception as ex:
+    pass
+
 from baangt.base.Faker import Faker
 import random