Skip to content

Commit e0586b0

Browse files
committed
fix: catch-import-error
1 parent fb75554 commit e0586b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

robyn/migrate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ def init(directory: str = 'migrations', multidb: bool = False, template: Optiona
207207
print(
208208
"Cannot find models module.\nPlease provide your database URL with \"--db-url=<YOUR_DB_URL>\".")
209209
return
210-
except ImportError:
211-
print("Cannot find models module.\nPlease provide your database URL with \"--db-url=<YOUR_DB_URL>\".")
210+
except ImportError as e:
211+
print(f"{e}. Please fix first.")
212212
return
213213

214214
if not model_path:

0 commit comments

Comments
 (0)