AadityaNair / AadityaNair/ProjectNephos

Unable to catch sqlalchemy integrity errors.

Offen
#10 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug help wanted
Vorherrschende Sprache
Python
Sterne
3
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Something is wrong with it. needs more investigation.
Basic code:
```python
try:
self.db.add_job(
args.name,
args.channel,
args.start,
args.duration,
args.upload,
args.convert_to,
args.tags,
)
except (IntegrityError):
if len(self.db.get_channels(name=args.channel)) == 0:
logger.critical(

```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Look at the db.add_job method and the underlying SQLAlchemy models to understand the integrity constraints. Check how IntegrityError is imported and handled. Run the code with a duplicate entry or missing foreign key to see the exact error. The fix likely involves correcting the exception handling or the database operation.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python, sqlalchemy
Bereich
backend, databases
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.